Made the REST API more resource-oriented.