Added inheritance for hooks from parent classes

also added hook inheritance from mixins, and adding
hooks to child controllers, added as sub-controllers.

Fixes bug 1330673

Change-Id: I709cece7bcce26943b254b15dc8ddac5613b1202
Merge "Added inheritance for hooks from parent classes"