Hook up AuthManager

Now it kind of works. Need to work out all the kinks.
update hydrate