allow custom resolve function

Allow a custom function to resolve require calls.
This functionality was present until version 4. Module-deps still supports it, but browserify does not pass the option.