Gtihub code moved to a separate lib. Added more logging on the sign in process. fixes #7