Extract resource dsl out of ResourceDescription class

It makes it easier to see what is the resources dsl. Also some dsl
belong outside the class itself. Also come code duplicity was removed
by this (when the keywords are shared with method_description).