Use lodash. Fixes #441

Add lodash as dependency. It can be accessed with _.
Changes to utils are still open (see #441).