basic logic for subscription billing. More restful tweaks.
Merge branch 'subscriptions-invoicing'