use generic model for metrics and events

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