Resource as context manager concept

Still seeking best signature. For now it will be
base.context_headers(class, lambda obj: {header_name: obj[property]}).
There are definetly can be a better signature.