tweaked Gruntfile to allow its rules to be used by other gruntfiles
more tests
added return promise for each handled thing