Set up base webserver and base debug function