[api] Allow for providing a custom `request` option

Since monkey punching `nano` is impossible, allow user to provide a
custom `request` option for failovers and similar.
Merge pull request #159 from mmalecki/request

[api] Allow for providing a custom `request` option