Give http its own main function and rearrange Makefiles