refactor tests a bit
add default_headers keyword arg to the API

This is principally to allow specification of a
default Cache-Control header for the API conn.
bump