The db module now exposes query, insert, update etc. functions directly.

No need to call get_db().query anymore. All the queries executed will be
recorded in stats for measureing where the time is spent on the page.
First steps towards storing waiting loans directly in db instead of store.
setup travis and dev instance to run tests with database.
Fixed travis config for setting up db
Added transaction function to the db module.
Update the waiting lists data in waitingloan table along with the store entries.

Making it easier to switch to waitingloan table.
Ignore UnicodeError in sanitize
Merge branch 'wldb'