Split __init__ into several modules and remove flask-peewee dependency.

This should make imports more sensible and with less side effects. Also might reduce the memory footprint of the workers.
Merge pull request #219 from EverythingMe/celery

Split __init__ into several modules and remove flask-peewee dependency.