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