only add num* attributes to job json when there is any meaningful data available (when status is finished or failed)
logging the port the HttpListener uses
configurable Access-Control-Allow-Origin header for HTTP access control