Check whether recording dir exists, …

and proper JSON response content-type headers.