Fixed type names of REST DTOs
Refactorings to criteria API.
Renamed existing criteria
Extended criteria API with range and value lists support