Issue 260

This has a lot of the study creation in place.  Please review, since it's somewhat large.  Note, you can ignore anything in the "vendor" directories since they are pulled directly from jquery (MIT license).  Also, the JS at the head of create_study.html is all straight from jquery example code (CC0 license, but I attributed anyways for good measure), so you can probably ignore that, too, although I added from line 162 onward.

Where relevant, I marked lines with "TODO" comments (but probably issues should be created); most of these simply depend on the ontology and controlled vocabulary stuff actually getting merged.

Some changes in this PR and a previous PR change the database schema, so make sure to reload it!  I also had to change the EMP loading shell script slightly to reflect those changes.  I'll send out the new version shortly.
http://stackoverflow.com/questions/10814535/can-i-iterate-over-a-class-in-python
This looks like what you want to do. It seems you can't make iter a classmethod, but can make a function to do it at the class level.