More unit test for access and entitlement.

- Change type of namespace in binding to EntityName since packages may not nest.
- Entity[Name,Path] and Doc[Id,Rev]: Remove apply() as String conversion in favor of asString.
- Subject: Remove apply() as String conversion in favor of asString.
17 files changed