index: move the exports before the `require()` calls

This is because of the weird circular dependency that we have set up
between this module and `proxy-agent`. We must export this module
(and the `protocols` array` *before* requiring the `proxy-agent` module
otherwise this module will appear to be an empty module when `proxy-agent`
requires us.
v0.1.1