Feature/messages api

There are some comments of places where I'm not sure what is optimized, and we won't actually want to have the cron job to trigger the payment warnings until we have the payment system setup.