Add JawBone authentication
Move functions to the top
Tidy up the login functions
Move all authentication functions to the top
Standardize authentication
Minor fixes to get working in production
Merge branch 'JawBone_merge_master'