Added JSON API for communication with the SLA plugin.