Progress toward ajax-style plotting

Fixed some errors with measurements_ajax, and got plot_form to load JSON
data per the values entered on the page.  Next step is adding d3.js-based
charts.