Prepared Controller for unit test

Created a protected constructor for unit testing which is conducted within
the package.
Prepared Logic for dependency injection

Added Logic constructor for extension.
Created LogicStub class which extends Logic.
Merge branch 'controller/sharon'