* Fix typo for motion status of beam devices (#85) * Refactor auth/token generation and storage * Add some basic error handling to token web UI * Move config processing to a function * Move token refresh processing to a function