Add metric gathering tools to Jenkins and local build tasks

This commit changes the way the repo works with data collection.
Previously, data from only local build tasks was stored in a
database. Now, data is also collected from Jenkins tasks and posted
to a metric app server.

To work with Jenkins tasks, both standard and dynamic,
this commit adds a new metrics parameter to Jenkins, providing necessary
information for data analysis that could not be collected from Jenkins
itself.