Starting to implement authorization.
Adding authorization check to all APIs.