Pubstwo 889 Client side authentication functionality done

Probably, I rushed this in and need to learn about the deferred/promise stuff. Definitely a major hole as of now.