moved init code to main to make appmodel more testable
extracted map functionality to maputils
extracted bindinghandlers to own file