Use $wp_json_server as parameter to instantiate WP_JSON_CustomPostType

Hi,

Don't know if it's exactly the correct thing to do, but I ended up using global `$wp_json_server` to be able to instantiate a child class of `WP_JSON_CustomPostType`.