Adding http transport test

As discussed with @indexzero but made the http server listen in a random port to avoid clashes and reduce test flakiness. Should this be merged in master or shall we create a 1.x branch? Thanks!