clean up gruntfile
simplified event bus
introduced array utils to provide reusable code