Proxy support

I fixed the issues from the previous pull request.

Dependencies are no setter-injected, so the signature of the constructor does not need to be changed any more.

Unittests pass, I added one test.