Added login and registration api calls to the function pool,
while the application state is persistet through localStorage.
Also (if signed in) the username will be displayed in the
navigation bar of the website.
This allows requests at url '/t/<code>' to be mapped to '/tournament?code=<code>'
and '/t/<code>/fullscreen' to be mapped to '/tournament-fullscreen?code=<code>'.