Store the treatment id in the experiment.

I avoided renaming 'treatment' to 'treatmentName' for backwards compatibility with old data.
Associate batches with HIT types.

The testing login part of this code is a bit messy; any suggestions?
Include HIT type ids, to disambiguate.

This is a temporary fix; creating HITs should be associated with the HIT type to begin with.
Fix error reporting on login.
use released versions of x-editable and bootboxjs
fix test that was using treatment
Merge branch 'master' into batch_per_hittype
Blaze fix for batch admin page.
Use the HIT's batch. Start removing the concept of an 'active' batch.

This will break the lobby for now.
Start fixing tests.
Expose batch on the client too.

Seems messy to duplicate this code.
Merge branch 'batch_per_hittype' into devel