Better errorHandler logic; add lodash.
Move config.