Serialisation behaviour in CWebUser

Separate out the serialisation behaviour in CWebUser into
easily-overridable functions