Refactor code.

* extract_urls(): Don't insert script_xrefs directly. Update documentation.

* insert_urls(): New function. Insert script_xrefs at the end of the description
                 block.

* fix_script_xref(): Remove function.

* rev_test: Spacing fix.

* main(): Update function calls accordingly.