Use the correct protocol
Add JawBone authentication
Move functions to the top
Tidy up the login functions
Move all authentication functions to the top
Standardize authentication