Bugfix: move hidden fields inside form, so that they're submitted in
query_form.jade.  Fixes dynamic width issue for SVG.
Also, adjust parameters for a cleaner SVG including legends and margins.
Also, missing docstrings marked with TODO flag.