Use a main app file

- Small refactor to allow for using one main app file
- Moves files from ``src/`` folder to ``libs/``
- Main ``app.js`` file on root path
- Small tidy up of the JS such as using ``path.join`` for creating file paths.