Study creation via OTOL API, diagnostic JS

NOTE that the required "upstream" functionality is not yet provided in the OTOL API or in treemachine, but this should be enough information to jump-start implementation.