restructure of HTTP server & avoid port clashing

py2.6 compatibility this time

I need to be reaaaaaallly explicit for py2.6 [I could have used {0:d},
but figured if I was going that far I should just go all the way to
named variables...]

pep8
fix to a bad rebase: the long, ugly version was NOT meant to be included