Add Page.protection() method to core

This is similar to compat but returns a clearer dictionary from
corresponding site method.

Change-Id: I2427d5a9a62f38a4e64dfbf54577c57e2e8a07cc
Merge "Add Page.protection() method to core"