Return headers from api calls

Signed-off-by: David Stevenson <stevend@pivotallabs.com>