Create index.js

Copied over the code from Feathersjs REST Provider.