MB-100:replaced extract_auth(username, ..) with explicit function

Change-Id: I6b3e17b634342ab28fd96b4a1df615f90a17aaf3
Reviewed-on: http://review.couchbase.org/27945
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-100: include otpNode even if auth is not admin

Because RO user UI will need this stuff.

Change-Id: I6dfd4b5007c3280d4d8b533b1614f3ca79e1243f
Reviewed-on: http://review.couchbase.org/27946
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>