Add options to goal panel

- This PR adds possibility of measuring desired goal achievement by values other than query hits count, i.e. max, min, mean or sum of particular, user chosen field.
- It also lets user set a goal as a value of a field, not just a constant.
- It changes color of percentage numbers to black when dashboard is in light style so they are visible.