Moved functions from client side localauth to auth.

May move back out when I sort out what is local and what is central
Can disconnect accounts