Mostly rewriten

* Store queries in database instead of params
* Lazy loading of ChangeLog tabs
Remove debug lines and move init code to js file
Fix query preparation
Added active flag and sort order in Query objects
Just display a note if no queries available
Fix Bugzilla test failures