Small fixes in build system and little code cleanup

- fixed order of build tasks
- removed necessity of grunt x operation
- removed unnecessary console.log statements
  that made tests output look ugly