Client and server login work

Client is now logging in and saving token in header. All subsequent
calls have token in header.