Implement the adjust related target algorithm

https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#dfn-adjusted-related-target
Merge pull request #41 from arv/retarget-related-target

Retarget related target