Make serialization more configurable from the request context.

Properties to always be serialized (regardless of depth/lite mode) can
now be specified via the REST interface with a '_ip' (for "include
properties" parameter. This is the first stage of making serialization
in general more configurable.