Further extending the library

I moved the ResourceCollections of all resources inside the resource dart files.
And I added the check for the required annotation (metadata) -> this code really needs review