Added code attribute to Metric class.

Signed off by: Daniel Bucher <daniel.bucher88@gmail.com>
Merge pull request #28 from mezuro/metric_configuration_code_field

Added code attribute to Metric class.