Grunt tasks

gruntfile changes for build, docco, testify. minor test refactoring