working on grind deploy

This CL fixes the `grind deploy` command. @ussuri for review

- fix a polymer deploy warning in spark-splitter.html about DOCTYPE
- fix polymer deploy warnings about imports
- give polymer deploy more memory to run in (_a lot_ more memory). rev the grinder dep. to capture the feature to pass memory args to the VM

Also in grind.dart:
- fix a bug where called `grind clean` twice would fail
- clean up code to creating the SDK archive, to move global methods into class methods
- add a stats / line counter option to grind
- change how we address the javascript issue w/ restoring file entries. We were patching the JS output, which tended to be fragile. We're now patching the dart:js library file w/ Justin's fix. His CL missed the latest dev push, so we'll have to have a workaround for another few weeks. @dinhviethoa 

I have not tried running the resulting `grind deploy` output, but the grinder task does complete now.