Implement support for named resources.

Unfortunately there is a bit of work to do; if a resource has a name then
the implementation doesn't fall back if an annotatedWith() binding wasn't
supplied.  Still investigating.