Giving territories ID's can be done automatically using one of Matma's fancy tools, but it will name every path it can find, including the ones you use for decoration purposes. You can find it here, along with a few other tools:
http://wiki.warlight.net/index.php/Automating_the_map_creation_process