Fix Demo mode

This addresses #1 and (indirectly) #4.

The root cause here was that we left the option of logging out of Demo mode on the interface. Now when the application is in Demo mode, it stays demo mode until the app is restarted.

cc @pattichan, @pyu10055