[api] Add event-based ability to modify pre-flight proxy requests.
Merge pull request #673 from digitalbazaar/mod-header-event

[api] Add event-based ability to modify pre-flight proxy requests.