Add nextseq linking

This is the version I wrote, you'll want to layer on the diff you emailed me about. Rebased it, so hopefully it'll be a clean fast-forwardable merge.