Added test structure
Changed Flask app structure to fit in with tests
Added app tests
Docs for tests
Added comments