Add invite page & logout logic

Additionally, there's now an appContext object
in the datastore which currently just sends
the client-config to the client but it is
possible to include more context.