added twitter login/logout management, more api endpoints