Bug 1079748 - Implement hierarchy manager

the system dialog is failing for me. but could we trigger a real system dialog instead? we want to make those integration tests as real life-like as possible.