Router set up

Set up Klein-router for the app. Also added lazy db initialization.