more explit online/offline mode
adding some more offline capabilities
Merge pull request #19 from dimagi/offline-testing

Offline testing capable fixes