grunt + code cleaning

Finished most of the setup of all the grunt-related files. This should
be just code hinting / re-writing from here.