fixed issue #97 - Added query string session data for /api/sync

This will be used as scaffolding for future applications such as firefox extensions for incoming authentication data
Merge pull request #134 from yoavgurevich/issue97

fixed issue #97
Fixed #106 - Updated SyncMessage handling in unit tests to use SyncMessage.parse() and SyncMessage.stringify()

We've been having trouble serializing SyncMessages, so SyncMessage methods were written to make sure they were serialized properly. This patch updates the test suite to use those methods.
Fix Issues #136 - Access-Control-Allow-Origin