refactor task and gruntfile

* add "clean" task for post-build cleanup
* removed unnecessary code from task
* refactored using grunt conventions
* improve semantics so others can more easily follow the examples