Remove lodash dependency.

_.each -> angular.forEach
_.map -> Array.map
_.some -> Array.some
_.copy -> angular.extend({}, …)
_.isEqual -> angular.equals
_uniq -> own implementation ATP$unique
Include polyfill for old browsers.