Make HTTP server port and number of threads configurable