Added in early support for WTForms
Sorted out a lot of errors in next action and inbox handling
Moved the database