Debugging the webserver, about 90% done. Also See TODO notes in the file about what is not yet implemented.