General additions to the behavior of generate-autoloads.

Any text above the generated output in maintain-autoloads-file is now
kept untouched, allowing the maintained file to become a host for much
more complex configurations.

See the diffs for other minor changes.