Remove many unused requires, replace underscore

Replace underscore with lodash, or native forEach/map
Remove underscore npm dep
Merge pull request #472 from knownasilya/require-cleanup

Require cleanup