Sample for Discovery functionality. Will work writing documentation for the sample on the wiki. Also: a further fix regarding the handling of proxies in the ServiceInvocationHandler.