Fix channel/goroutine leak in _changes feed

Make sure the goutiness and channels that are generating change entries
get terminated when the changes feed handler is finished.
For #166
Fix: userCtx.channels was unreadable from JavaScript sync fn

This broke requireAccess().
Fixes #151
Merge branch 'master' of github.com:couchbaselabs/sync_gateway into stable