Allow header expectations to be procs taking response as a single arg and returning expected value/pattern
Refactor app_post header expecation to generic post header expectation

Also add post header expectation to error responses