Moved http server from scratchpad to main code..