A couple of fixes for httpclient.

+ Allow empty path in urls 
+ Convert port to number to avoid exceptions in iostream:connect()