Made signed in user available to all views.

Also changed serialization/deserialization to use username as it wasn't
working with the ID.