`customKey` middleware and new `createKey` algo
This releases adds a new middleware customKey which is loaded into the requestMonitor middleware. The benefit of this middleware is users can now override the auto-generated ctx.key inside their middleware:
const fetchUsers = api.create('/users', function*(ctx, next) {
ctx.key = 'fetch-users-key';
yield next();
})ctx.key is used for automatic caching.
We also modified the algorithm for generating the key automatically. Instead of a base64 encoding we are now performing a hash (pulled from https://gist.github.com/iperelivskiy/4110988).