First commit of prototype.
Moved map related functions in own script file.