Refactored parts of analysis and metric systems. Added filters and subdocument capabilities. Added migrate and remove-metric capabilities.
Forgot to add untracked files.