Made some changes to fall in line with the updated spec

Includes new protocol methods for onAdded, onChanged, onRemoved, onReady, onAddedBefore and onMovedBefore.

Also changed some of the json parsing functionality to fall in line with updates to SBJson.