Improved focus checking.

Element:focused() checks focus all the way up to the root.