doc: consistent reference-style links
Moved all the URLs in API docs to the bottom of the files as reference link definitions.
This had already been done to some of the files and some had the reference link definitions halfway down the document due to some restructuring, so I thought it was worth fixing them all for consistency. This is the format specified in the relevant nodejs/docs guide.