Minor fix for debug text (PATCH->PUT).
Fail gracefully when using a container URI for a PUT.
Important -- added support for user groups during ACL check.
Added tests for user groups. Also fixed the error check order for all tests.