optimized fetching of resources
added TODO for ResourceHandler
added TODO for Collection
implemented some tests for REST-API