Fix headers ordering bug.  Add testing demoing bug.

Passing {headers: []} was breaking due to use of a local variable uninitialised under certain conditions.
Fix is to use the instance variable, which was already being set correctly.
Tests introduce dev dependency of event-stream for convenience
 - May want to re-write to suit project style