HTTP (progress towards #3 and #7), + minor fixes