Extracted http layer to its own 'net' package, out of 'api' package