Deleted extend methods from utility and use util-extend instead

Use https://github.com/isaacs/util-extend from npm instead of defining our own. Deleted methods from utility and changed code that used them.