type/genericio: apply percentile on scaled value
jsrrdgraph: RrdGraph.js: make HRULE support reference to variable

The value of HRULE could be a reference to for example a VDEF variable.

Closes #85