Merge pull request #312 from jnovatnack/revert-has-many-array

Fixes an issue with revert that was causing new records to be maintained in hasMany
hasMany attributes can now be set(). Fixes #310
Reverting a record with an embedded hasMany now updates isDirty.