stats: Add http500, memoryUsage, pendingEdits gauges

and turn edits metric into a timer instead of a simple meter