Add utility to resolve a resource and replace properties in the stream.

Make all the methods public.  Really.  There's no fucking reason to make
them otherwise.