Adding MDC to json response

Remove the runtime dependency on net.minidev for JSON. Then add the MDC variable to the json response of the layout. Remove some dead code as well.