Bug 1079748 - Implement hierarchy manager

nit: let's use real modules