CBD-816 Export apply_new_bucket_config_new_style.
CBD-816 Export apply_new_bucket_config_new_style.

It will be used for recovery. Additionally I made it return more
detailed error.

Change-Id: I4b0a502039c6e81e465035184f8c50876b10f5c6
Reviewed-on: http://review.couchbase.org/25239
Reviewed-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

ceejatec/ns_server,nimishzynga/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,membase/ns_server,membase/ns_server,t3rm1n4l/ns_server,daverigby/ns_server,nimishzynga/ns_server,pavel-blagodov/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,daverigby/ns_server,membase/ns_server,nimishzynga/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,membase/ns_server,membase/ns_server,mschoch/ns_server,ceejatec/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,ceejatec/ns_server,ceejatec/ns_server,pavel-blagodov/ns_server,vzasade/ns_server,vzasade/ns_server,vzasade/ns_server,nimishzynga/ns_server,vzasade/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,ceejatec/ns_server,pavel-blagodov/ns_server,membase/ns_server,mschoch/ns_server,mschoch/ns_server,ceejatec/ns_server,daverigby/ns_server,mschoch/ns_server