Misc changes

Added an extra parameter to metrics so that the list can be returned already filtered.

Added exists method to KWJSONRecord