Refactored metrics mbeans some more. Added debug and trace options for commands.