[model-sync-local] Tests for new storage structure
[model-sync-local] Refactor of MS.Local internals

This changes how `ModelSync.Local` works internally in each of its
CRUD methods, and how the data is stored inside of `localStorage`.

Previously, all data was stored inside a single key/value pair. This saved
the amount of storage used inside of `localStorage` but duplication of
data was needed in order to properly map models in memory. Bugs were also
found when dealing with change events with MS.Local.

The new storage mechanism works like this. The root key contains a list of
all of the IDs that are instances of that root. For instance:

'users' : 'users-1|users-2|users-3'

Then, in other keys:

'users-1' : '{"name": "Clarence"}'
'users-2' : '{"name": "Eric"}'
'users-3' : '{"name": "Ryan"}'

The public API hasn't changed - only the storage mechanism. This also has the
side benefit that it's easier to debug as well.
[model-sync-local] Fix error handling test
[model-sync-local] Build
[model-sync-local] Fix `indexOf` error
Merge branch 'ms-local-refactor' into dev-3.x