Fixes #7900: Bastion pages couldn't load due to unparseable User.to_json

A change to the User model led some fields to be unparseable when
User.current.to_json is done within the layout. This reduces the fields
to only those specifically needed by the UI.