Started separating map events into own functions.
Added comments and descriptions.
Quick fix to TerritoryFeatureLinkModel
Merge remote-tracking branch 'origin/MapFunctions'