http: K&R formatting cosmetics

Also comment some #endifs and reshuffle headers into canonical order.