MapModule migration to its own file

Mapmodule has been migrated into its own file to create independence.
For ease of use and availability in multiple AIs.