Factor out http-transport aspect of rmt.scm in preparation for adding tcp-transport.scm