Fix bug where api calls would not check "token" parameter for token.
Log when unhandled exception is thrown out to the ApiServlet by a command or query.