Fix #327 + Separate Gruntfile and tasks definitions