Added sign-in with twitter and code cleanup