Fix JSON CSRF bug

https://github.com/pauloconnor/graphiti/commit/b8f4a238f32548e57076ef97834ee3c912aef3ea
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'
Merge pull request #3 from vs-networks/master

Fix bugs in metric search and options updates