Initial work on offline support
Merge pull request #20 from marksrcn/offline

Initial work on offline support