Added unity IoC

added unity for IoC to make unit testing easier for controller.