split auth logic to distinguish between twitter and github, closes #62