Udated authorization scheme and added twitter login support