results.js: use lisp-like code to customize plots

Allows you to specify how to process results and effectively removes
the need to have a common format for every test.

Solves an issue raised by Dash Elhauge when he was doing an intern
here at the Nexa Center.