Support anchor fragments in URLs (e.g. /foo#bar)

This implementation is based on this [Stack Overflow answer](http://stackoverflow.com/a/20578639/507670), which was based on the Meteor Docs site's implementation.