refactoring, lifted registry functionality from prox detector system and register and exec util function

Change-Id: I22425386a29ba083f797753d464b3ded25ead958