Add basic authorization.

Added basic interface for authorizer implementations.
Added default "authorize everything" implementation.
Added authorization checks in each REST handler routine.
Added tests that these routines return forbidden error code
when the authorizer implementation denies access.


I would suggest `authorization_mode` because a) it's important to know about what the param means and b) authz doesn't make sense to most people.