Added some initial tests, new bottle.py API, emailer and in-memory DB
support.

Added first stub version of the frontend