Reset events include previous models.
Fragments should be handled encoded.
Backbone.sync now takes an emulateHTTP setting to override global setting
Use global emulate options as defaults.

* `sync` accepts `emulateHTTP` and `emulateJSON` as options.
* Use global options as defaults.
Overhauling set/change for speed improvements
moving trigger loop into 'change', this.changed into 'changeCenter', more simplification of '_changeCenter'
Collection.add triggers an error rather than throwing an error when an invalid model is added.
Modified two tests to listen for error events rather than catching exceptions when adding an invalid model to a collection
Tweak add implementation.
Merge pull request #1 from braddunbar/add-error

Tweak add implementation.
Refactor `set` to avoid unnecessary `arguments` object creation
Match `save` to new `set` signature
Fix #1791 reorder constructor so `attributes` is defined for `parse`
Add test for #1791
Merge pull request #1792 from caseywebdev/reorder-constructor

Fix #1791 reorder constructor so `attributes` is defined for `parse`
Issue #1793: Backbone.history.navigate should use this.getFragment instead of fragment to avoid routes getting triggered twice
Updated issue number in test to match pull request issue.
Strip trailing space from fragments.
Merge pull request #1795 from braddunbar/trailing-space

Strip trailing space in fragments.
Merge branch 'master' into emulate-options

Conflicts:
	backbone.js
	test/sync.js