Refactor into task running lib. Reloads gruntfile upon changes.
Fixing tests
Add tests and adjustments for restricting events