ResolveHandler implementation, including regular expressions for matching various GitHub, GitHub Gist, Imgur, Beanstalk, Trello, and generic image URLs