HTTP support + various fixes