Major refactoring and made element lookup by name available

Migrated more UIAutomation to use machanic.js.

If elements have accessibility label set it can be used to lookup elements from the tree by name now. If accessibility label isn't set the element's caption will be checked against instead.