Allow configuring Graphite graph times via PromDash.
Move graphite time conversion functions to service.