Fixes issues with subscription start and end dates

- mainly for subscriptions in the future
- adds tests
http://manage.dimagi.com/default.asp?120808