[agent] Refactor/utils cleanup

Removed unused utils and replaced utils/bind.js and utils/isObject.js with their underscore version.