Clean up Gruntfile.
* use grunt-replace instead of templates.
* simplify test dir.