OAuth to server updated. Added SSL layer. Fixed bugs