Refactored token persistence, added support for GitHub Application OAuth, allowed manually setting access_token