Fix item REST API integration tests, and some parts of the API.