[WIP] Modular app

### Problem

The app has currently been built as a big monolithic sinatra app, this is an attempt and modularising it somewhat.