added logout functionality and a better offline mode
merge fix
Merge pull request #55 from lkania/errors

added logout functionality and a better offline mode