Replaced the probably insane CGI call with dulwich

- Essentially a modification of the dulwich default http server code,
  with modifications made to emulate the wsgi variables and provide the
  emulated wsgi calls.