Bug 1079748 - Implement hierarchy manager

and we also need to cover the `setAccessibility` calls