[CBLT-74]: Remove sym link at post operation.

Change-Id: I00048642038065c9cd864b81f67fa1784190d634
Fixed an index-out-of-range panic from channelCache

Happens when the cache has to query the view but gets zero results
from it. (Reported via email from Andrew Tokarev)
Merge pull request #306 from andrew-tokarev/master

Sample config file to show all logs on screen, helpful when debugging Sync Function
Fix for shadower ignoring deletion events from master bucket

Fixes #285
Handle TMPFAIL error from db server by returning HTTP 503 status

The Couchbase Lite replicator will interpret this as a transient error
and will retry the request later.
Fixes #311
CBLT-240:  remove repo default from manifest.xml
CBLT-226:  merge from stable sync_gatewaypackage-mac.rb

Change-Id: I27f8e9f1c9ea9184aada2e834d9ab6507422d702
Updating LICENSE.txt to 2011-12-07 CE License

This is per requirement
CBLT-228: added:  LICENSE_enterprise.txt, renamed: LICENSE.txt -> LICENSE_community.txt
          Expect builder to copy correct one to LICENSE.txt before calling packagers.

Change-Id: Ia08dbbe26f6be43697021f5725552a2a5ff69eda
Bumped version number to 1.0 before GA code freeze
CBLT-179:  set Version constants to tokens (instantiated by build process)

    const VersionNumberString = "@PRODUCT_VERSION@"
    const VersionCommitSHA    = "@COMMIT_SHA@"

Change-Id: Ic9558ae0d9dbfb2a13d20d08d1e9de4c2f51d1bc
Updating LICENSE.txt to 2011-12-07 CE License

This somehow had reverted to old text. Updating.
Updating incorrect Community to correct Enterprise

Updated to Enterprise (Free, Brief) Edition license, from 2014-04-07.
Comply with EE change for 2014-04-14

This is for packaging, only. Small change in license language.
Fixed race condition: err "the pool is closed" during a rebalance

Commit from go-couchbase:
If Bucket.Do obtains a connection pool at the same time that another
goroutine refreshes the bucket's vbucket map, the bucket can end up with
an already-closed pool which will return errors trying to get a
connection.
Added a utility method Bucket.getConnectionToVBucket that does this
safely by retrying if it got a closed connection pool.
Added SlowServerCallWarningThreshold config variable

Set this to a value in milliseconds; Couchbase bucket requests that
take longer than this will cause a warning to be logged by go-couchbase.
Default value is 200ms.
Revert "CBLT-179:  set Version constants to tokens (instantiated by build process)"

This reverts commit 1b86eebeb7805213b566007197776362c4d768a0.
Version identification now uses both API level and Gerrit build ID

Version number logged at launch and returned from "GET /" now looks like
"SyncGateway/1.00 (1337; commit 1deadb0f)"
The first version number is the API level which is interpreted by CBL.
The second number is Gerrit's build number.
The third is the Git commit SHA.
Logging defaults to non-color (i.e. without ANSI escape sequences)

To enable color, use -log=color flag
Ensure restTester isn't GC'd before finishing TestConfigServer