Removed dependencies.

Removed lodash and added underscore's extend function to the file to remove all external dependencies.