Split http code into its own file

Signed-off-by: Paul Brook <paul@nowt.org>
Merge pull request #1 from pbrook/spaceinvaders

Split http code into its own file