Add json_check_read_permission filter.

This allows a plugin to programatically set whether or not a given post should be exposed via the API.