Added user caching (content and session), template fix, added person access DB methods.