Remove unused code, move marshalling intialization code.
Move keycloak user creating code. Fix bug where login happens after refreshing page after logout.