Added watching task.
Fix issue when access_token is invalid one doesn't redirect back to authorize.

Also added watch dog timer that watches access_token.