Using module pattern and refactoring.
Merge branch 'master' of github.com:demonixis/AtlantisEngine.js