added threads option for http-server for convenience.