Removed unused code

Tweaks
wip refresh token
replaced EitherT with ErrorT
Some cleanup
Implemented refresh token and storing new token
Added RTS flag to reduce energy impact