Remove toJSON methods, use getProperties instead
Set own properties on Firebase.Hash

For properties that are defined on a Firebase.Hash, set them directly
instead of ignoring them.