Implementing the authorization. Implementing AuthorizationPlugin and
tests. Fixing Tests.