Massive cleanup

Move xml parser into its own file.

Remove unused code.

Implement remove handlers.

Switch metric info from Metric class to Map<String,String>.

Set the trigger key correctly so we don't have multiple triggers for the
same schedule.