Rewrote generator to be easier to understand, removed excessive grunt tasks and dependencies.