Minor bug fixes.

Added memcached support.

Add group membership checks for BYOD users.