Added asynch promise handling.
Promise changes
Defined first repositories for testing.
Refactored for using the level system.
Fixed syntax errors across the board.