Check authorization.

* Plugin to check if the user (or guest) has access to the current
resource.

Change-Id: I7ef7e225f4acb49b7861b3711cf7742748b36695