moved granting logic from lib into anjarootd (untested)
remove now unneded hook stuff from libanjaroot