Adding REST_Json_Response class and REST_Exception along with instance() pattern fix