Added support for links.

This is #64 in separate branch.