Get basic doc unit linking working.

Still need to:

 - create a new access point with a link
 - remove existing links

I'll add JS functions for doing the latter soon.