Preparing simple game loop for animation later and...

refactoring the code, make ms object a module, make EventHandlingManager private object in ms module
Merge remote-tracking branch 'origin/master'