Replace context with api.

This keeps the user logged in after tab closing, since state is stored in the server.

Merge request reports

Loading