(#2449) - expose HTTP headers for plug-in use

A bit different than described in bug #2449, but this exposes what I need more conveniently, and it's not public API anyway. Required for most of my plug-ins (e.g. show, list, update, auth, etc...)