Integration between views and 2i and few bugfixes.

- sync.Mutex to avoid race condition between refresh() and query-execution
  path.
  - refresh() on namespace seem to update,
    p.site.client, p.cbNamespace, p.keyspaceCache fields.
  - refresh() on keyspace seem to update `indexes` map asynchronously.
- cb.Bucket has a reference back to Pool. When a new pool object is
  created, correspondingly Bucket instances had to be updated using
  the new-pool instance.
- primary index can be created with views or with 2i.
- added definition for Statistics{} API contract.
- keyspace.Count() shall not use Statistics API.