Split out the app into two sub-apps for api and web interface

This should allow the API and the web interface to be better seperated.

Might need to split the api and the web interface into seperate
projects at some point, but it should be easy to just extract them
given that they're seperate express apps now.