Bug 1079748 - Implement hierarchy manager

please use the helper in `lib/lockscreen.js` for lock/unlock so we keep those centralized