Rename set_serializable_attributes -> serializable_attributes_hash and
changed serializable_attribute_names to use the argument attribute_names
instead of attribute_keys.

Improved documentation for serializable_attribute_names, and refactored
serializable_attributes_hash to use each_with_object.