Add support for custom queries (DATA_VERSION 4)

Adds a <select> where you can choose what query the statistics are based
on.
Fix NaN's when a query is empty

Instead of "NaN%" simply show a dash "-" in order to signify that the
value cannot be produced.
Add linebreak before percentage in published-widget