Basic implementation of all study-export options.

Fixes the bug in #400, but doesn't explain ambiguous OTU labels.