Fix uncaught error
Use a Devise Authenticator with a custom serverTokenEndpoint
Less logging pls, kthnxbai
Add missing import statements.