More work on signin etc.
More work on authentication UI
Fix minor bug in auth UI
Handle logging out.