Fix https://github.com/codexa/pictroid/issues/18

Implement Mongodb for sessions and set it up for other stuff