Fix user forced to clear cookies after access tokens gets expired

  Previously after access tokens were expired, the application was not checking
that. As a result users were forced to manually delete their cookies. Adding
checking of expiry of the tokens on the server side.
In annotations, when a link is added, it should linkified

  When links are added in annotations, they should be placed inside <a> tag so
they can become hyperlinks in the UI.