Reworked the mgmt 'restconfig' call to respond with JSON.