MB-5581: Revert "removed strange header magic for username = default"

This reverts commit 415b8f46f78f354de0f07f3d71a50dc366329ff2.
Since default bucket has no password, we don't need to do sasl
authentication. It is the special case we need to keep it as is.

Change-Id: Ic2cf0499c251f24c9cb57fb16588be035f6b9a3f
Reviewed-on: http://review.couchbase.org/17290
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
added bucket create test

Change-Id: I217667849e005f669c75de6575c2885548387f28
testing object param type for RestConnection

Change-Id: Id50ebcc04e70014f5bb75e62d5c1b922298c5eeb
tested & improved delete_dd; refactored create_dd

delete_design_doc did not properly handle missing
design docs; it now throws an Exception if it is
missing.

Change-Id: I5886dfe90cc789b318127f2a83e71234dc5c9477
testing _create_headers in RestConnection

Change-Id: Ia95e8119d33942ad4af4d898ad627d439ad43e02
testing get_design_doc including Exception case

Change-Id: Ia533ea1ac74e12e2935e063cb7d7d209a3eccc63
testing get_view

Change-Id: Ibdbaa804606c59752791dced8f3674c49302c5bc
deprecating get_view as it dups view_results

Not sure how it came into being either as it is less powerful
than view_results--returning the entire view results as it
does not allow for params to be passed in.

Change-Id: Id41e601885d66dc0b2381bd0c9f42d19d8076733
code reorg to keep related things nearby

Design_doc related stuff near each other. View related
stuff near each other.

Moved tests to match module code.

Change-Id: I2747b1b6895650c9f2a659c804956d2d64c08974
dropped view name check in view_results

It was unclear what the purpose of the check was for
as view results are not returned from the URL
{bucket}/{design_doc_name}--especially when the
design_doc_name did not include _design.

Also switched the string formatting to use the 2.5
compatible %-based system.

Change-Id: Iefd998a0fb8c8f285afd24d5162b87e370490002
cleaning up design docs after failed run

Change-Id: I13830586d5f78f15b9af9ffde053cc3bed9a292d
testing view_results in RestConnection

Change-Id: Ibc8c28f24ec7d52a42bd481e21d90b5cc4520468
using @nottest in test_client

The @nottest decorator lets nosetest skip things
that are not tests--setup functions, etc. If we
leave it out, nosetest may run setup style
functions unnecessarily and create extra docs,
buckets, or fixture stuff.

Change-Id: Ic9b7415a33043721584d0cb701201b8c5a9a2b05
tweaked the decorators for test_restclient

Made sure 1.8.0 compatible REST calls were marked.
Added @nottest where needed

Change-Id: I0517f14925e5fc76013570f02ef1a87a74747e62
added SkipTest; using to skip 8091 when on 9000

If the tests are not running on the default port,
we should not test the default port behavior.

Change-Id: I0897fd1ccaa02ccbc7e8a2bf6809fa9e8c44fc81
testing bucket delete

Change-Id: I0ef69fc2369c2c9ee17b8fbe9ffc6d1d04edfdc0
dropping ServerHelper; replaced w/requests calls

We no depend on requests from:
http://python-requests.org/

It will be rolled out in more places soon. For now
it is replacing an odd ServerHelper class. There is
some repetition now, but it will be further reduced
over time.

Change-Id: If08abc888129d578540b377619f0d361e4e9ae5d
killed off the 3 init_cluster variations

Initing the cluster is really outside the scope of the SDK
cluster_connect (which is included with the SDK at present)
handles the job just fine.

Even if we bring this back, we can avoid three minorly
varied versions of the same function.

Change-Id: I5616ed87b038c376428ca77164d155f0a164ee69
cluster_connect makes default w/half memsize

Change-Id: I7f5b7c5ff73de6dd54f6028ede894593515200a6
refactoring client test cases; match class names

Change-Id: I52b739135f2bdeeaa405bdde4088184ed102f6f2