Add headers option and accompanying test

PR for issue #7

Uses and modifies a header object, rather than `res.set` as this seemed a better fit & was easier to test.

I've tried to keep in style with the rest of the code.