Fix some incompatible interfaces

* `WP_HTTP_Response` should declare its properties
* `WP_JSON_CustomPostType` and `WP_JSON_Media` have some out of date
method calls
* Remove some dead variable assignments