Introduces example of running a method on a resource

Example provides support for invoking arbirary methods on a resource object.

Change-Id: Ib07a974f188c76690ab7cd43cbfda503a5e81b9a
Merge "Introduces example of running a method on a resource"