Very very rough start to having messages for payment automatically created.
Not actually how we want to do this, but at least finish outlined part, that will later be replaced.
Merge branch 'develop' into feature/messages_cron
Merge branch 'feature/messages_api' into feature/messages_cron
Fixes to initial go at job to send one month warnings.
Cleanup of code for messages API and cron job for 1 month payment warning. Authentication still remaining piece.
Removing join-model we are no longer using.
Add authentication to API, but not sure it is best way.
document new way we deploy couch design docs
Merge branch 'develop' into feature/messages_cron
remove outdated views that cause errors

The datastructure changes to that email_aliases is not available on the user record anymore.

Keeping these views leads to errors on couch servers.
only emit pgp keys if they are actually set

if doc.keys has not been set doc.keys[pgp] will raise an error.

We always upload the key after signup - but this might fail and there is some time in between. Not checking for this condition lead to errors in the couch logs.
Merge pull request #133 from azul/bugfix/fix-view-functions

Bugfix/Fix view functions
Merge branch 'develop' into feature/messages_api
Some refactoring, to simplify user model, optimize, and allow messages to be sorted by date (although are not now.)
Also, rather than use whenever gem, will have cron job created to call task.