add correct handling of query params in server sync
add comment and more tests for query handling in client and server sync
Merge pull request #392 from sarchila/master

add correct handling of query params in server sync, fixes #388 and fixes #350