Added auto Token recovery.
Added ResourceT to monad stack.