MB-12361:bp: MB-10020 infrastructure for ... access.log

Orig-Reviewed-on: http://review.couchbase.org/36608
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>

Conflicts:
	etc/static_config.in
	include/ns_common.hrl
	src/ns_server.erl

The commit is not clean cherry-pick and worth separate code review.

Change-Id: Icd74d28de820c4fbb4646bef8f96cba19bc02a2b
Reviewed-on: http://review.couchbase.org/42178
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-12361:bp: MB-10020 reroute all http respond calls ...

to the api that logs into access.log

Orig-Reviewed-on: http://review.couchbase.org/36609
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>

Conflicts:
	src/menelaus_auth.erl
	src/menelaus_web.erl
	src/menelaus_web_crud.erl

This is not straightforward cherry-pick. Worth separate code-review.

Change-Id: I3404ab78c59794673f74a41571bae48cb8e09b36
Reviewed-on: http://review.couchbase.org/42179
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>