Fix unwatch and remove for appstate sync

Unwatchig a property on a sync object now removes the watch listener.
Also fix reference counting for sync object. Reflect changes in updated
tests.

Jira-issue: WP-235
Merge pull request #452 from aldafu/WP-235-improve-unwatch-and-remove-for-appstate-sync

Fix unwatch and remove for appstate sync