Add support for resources by name

This is the successor to #46. The bugfix commits in that request have been merged and now this only contains the logical changes needed for resources by name.
nit:
    s@eithee@either@g