tools: minify puts an 'autogen' warning when not minified

Have our minify tool put a 'This file is automatically generated'
warning in the file, if the file is not minified and looks like
normal javascript source.

Fixes #677