Improved parameter assignment

1. moved code to set question parameters into index.html, combining it
with the code that originally set subcondition. Extended parameters to
include all aspects of question instantiation. Created code to generate
random params, in content.js, but params will eventually be generated by
a php script I haven't written yet.
2. moved around the locations where data is recorded somewhat in the way
that seemed rational to me at the moment.
2. set buttons to deactivate when trial is not live