Remove old and deprecated REST API

This pull request removes the old and deprecated REST API in `master` (and thus for 5.9-SERIES). It will continue to live in 5.8.x.

The new REST API introduced in xp-framework/rfc#243 provides a full-featured replacement.