Make chrome app with compiled JS work.

Fix html.replace_js. Move copy_file to util. Correctly handle binary and text
files. Add version to manifest.