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