Reset searching flag on error in JavaScript

...and fix error in Metric.find
Show top-level metrics when search string is empty
Do not hide metrics when search string is short
Remove rather verbose JS logging
Do not overwrite custom graph options
Update default.js and default.min.js
Merge branch 'bugfixes'