Change limit and offset handling in ResourceHandler
Added test for collection request with limit and offset
implemented first test for sort parameter handling in REST API