Fixes some bugs and improve Grunt tasks

* Some style incoherences I haven't seen are now fixed.
* Grunt now built friendly.