Add response metadata support

All is in the title and it fixes #143