Added IsAuthorized view helper and minor refactoring.
Fixed locator in view helper factory (need tests!).
Updated composer.lock.