JSON support added to WebUI

Accessing either the Worker or Master WebUI with a query parameter "?format=json" will yield a response with content-type "application/json" and a properly formatted JSON object.