handle metrics and events via django forms

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