Update lodash to 1.3.1 and change references from lodash.legacy to lodash.compat.