Add basic support for fragment identifiers.

Closes #4