remove old API code

For v1.0, after its deprecation in favour of the new JSONAPI.