Adding the resource-type attribute, useful to find what kind of collection we are fetching.
Adding support for auto-discovery. Not %100 complete.