Use correct _session API URL for Sync Gateway

Now tries both /_session and /db/_session. Fixes #41.