Added some changes to get basic territory switching to work. Some ajax needs to happen to periodically update the territory list