Implement Config struct, improve logging

The mgo.Session is now maintained for the lifetime of the process.
Previously it was being opened and closed after every request. Keeping
it open increased performance by 100%.