resolve now accepts opts object

opts now can contain 'extensions' key which will be passed directly to
resolve function from resolve package. This allows to resolve non-js modules.