This commit adds a serializer for the PermissionRule entitiy. The eventual goal is that we serialize CachedProjectConfig. The entity is too large to be serialized directly, though, so we divide an conquer. Change-Id: Ifc691c58486c57c3a1f3ed80b731ef698011526f