Added REST API for auditlog where data are retrieved from Stats client. Improved stats client to write data either async or sync to make functional tests working. #105