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