Added 2 new hooks to provide more control over class creation

Now supports changing logic to fit dependency containers