add atop stats library

Change-Id: I9a2b84cc2203c7191df20631b52f1fd75ecd1159
Reviewed-on: http://review.couchbase.org/24277
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>