Create map module

Map code from display manager copied to separate file.