Revised question presentation and data storage

1. moved the code to deal with parameter settings into content.js
2. revised code for question presentation to use vertical instead of
horizontal layout
3. changed data submission to use submit_data_row instead of submit_data