2i test framework

Change-Id: Ia08f7a2d78b2f6e57bb1967fdf140cd7747b9770
indexer: Fill stream addresses correctly for projector request

When indexer sends start_topic request, the stream endpoint
addresses should be filled in correctly using addresses provided
by the ns_server.

Change-Id: I1af357f82ce84f4f4fc88c76d3763189d291b72f
Bugfix: Avoid GetTopicResponse() when topicMissing.

Change-Id: I60f06a29ed98b7381fa5940c4378236c180619bb
Fixed log formatting for projector.

Change-Id: Iaa5ff4eca58925bdf00ebdd822564b6c3fa6a5d4
scripts under tools/ enabled for multinode KV.

Change-Id: I4acb967777d6417e4d95886b1e9fafc0ae086f99
querycmd: Discover indexer ports from cluster address

querycmd will now accept -server=cluster_address
Indexer admin port and scan port will be discovered
automatically by using cluster endpoint.

Change-Id: I9cabcab1124c9a18d2a3bdbd39f1c242f16d8be9
Added more IndexTypes functional tests

Change-Id: Id9caafd36f0a756f541ef33b7cdbabe9acd63bd7
UPR_OPEN shall use bits 56:24 from time.Now().UnixNano().

Change-Id: I6d49a40eb6e1d5e573da6ce17170a6e2b9b7fa40
UprFeed is implemented as a genServer routine.

- race-condition: sending on a closed channel (output channel).
- race-condition: async access over connPools.
- UprFeed opens a connection with all kvnodes, application like projector
  will be co-located and will connect with local-node.
  - projector does not need connection retry.
  - bug-fix: to close gomemcached connection after GetFailoverLogs() call.
  - using sync.WaitGroup{} to synchronize feed closing.
- fixed example scripts.

Change-Id: I7e4521373f224c285f7e6ebd7e4578812a5fc7f8
BugFix: Use different name in UprOpen.

Change-Id: I4d618d613a3233c126f6a10998f3f35bd87b1825
log messages to print active-timestamps.

Change-Id: I6529a805d99cfb544a7cc9b7329af1d46eee868a
GCTRACE for projector.

- example dataport-app to prune away the docid appended to secondary-keys
- each GC measurement where taken for 1000-seconds.

Change-Id: Ifa93667c4602898d172a29dbd0fbf9afdc83d456
queryport: Span.range is optional.

Change-Id: Idbc39b2de983f03d5b301b7c2a27f16324bf742b
N1QL: index.State() will be returning ONLINE.

Change-Id: I1d099213c2111cb3b549d8d26babee4cd90a80cd
Bugfix: DCP StreamRequest serialized on connection.

Change-Id: Iaa98a4cdb786af0d0e5c7593fe443746e0081bae
trivial.

Change-Id: Ifa2823771c64d6d97fdd878d3c37225d6ecdcbde
BugFix: protobuf.TsVbuuid{}.ToTsVbuuid()

native TsVbuuid{} requires full set of timestamp.

Change-Id: I9bf257e49b35497a1ec25894972222dd7c1dbc7e
Merge branch 'unstable'

Change-Id: I15b616cc69c7ac7b64d982db0aaee991362430b3