Refactoring of Gruntfile. Adding test infrastructure