added statsDirectory and got hooks analytics nearly working again
added statsDirectory and got hooks analytics nearly working again

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

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