When Octobot is restarted and has password enabled, the web ui stops working until the user manually refreshes the page.
  1. Retain session server side when restarting
  2. Detect invalid session in client side and reload page