Fix hashtag watching bugs and add custom protocol handler support