fixes for loading indicator
fix JS error when there are no posts to mark as read.
redirect user back to their old URL if we were somehow logged out