Refactoring.
- rearranged files into folders
- Resource class moved to separate file
- added some documentation
- added missing BattleScreen.closePage()
- updated JsDoc documentation