Set up mongo db connection and session as Martini middleware

Fixes #1

Added a model package to handle db connection and later models