Api v2

New names and organization for version 2 of the opentree api.

These changes depend on some recent db structural changes introduced by taxomachine (already merged to master) which will necessitate a db update for oti. I have pushed an updated database to devapi and re-indexed the studies there as well.

@jar398, @jimallman, would you review this?  
I don't know. It can certainly be changed in oti if we feel that it would
be worth designating an ot: property. Currently, that property is set to
true if the tree is tagged with anything matching the search string "del*".
Obviously this is hacky and not ideal. It would be better to have an
explicit property, but maybe we don't need this property now that curators
can delete trees?

On Wed, Sep 10, 2014 at 4:33 PM, Mark T. Holder <notifications@github.com>
wrote:

> In TESTS.md:
>
> > +      "oti_tree_id" : "1495_tree3010"
> > +    } ],
> > +    "ot:studyId" : "1495"
> > +  } ]
> > +}
> > +```
> > +
> > +### Get a list of properties available for searching studies and trees:
> > +
> > +```bash
> > +curl -X POST http://devapi.opentreeolife.org/ext/studies/graphdb/properties
> > +```
> > +
> > +```json
> > +{
> > +  "tree_properties" : [ "ot:studyPublicationReference", "is_deprecated", "ot:focalCladeOTTTaxonName", "ot:studyLastEditor", "ot:studyModified", "ot:studyLabel", "ot:comment", "ot:studyId", "ot:dataDeposit", "ot:authorContributed", "ot:studyUploaded", "ot:studyYear", "ot:focalCladeTaxonName", "ot:tag", "ot:curatorName", "ot:studyPublication", "ot:focalCladeOTTId", "ot:focalClade" ],
>
> Is "is_deprecated" really a property? does it need an ot: namespace?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/OpenTreeOfLife/oti/pull/26/files#r17386871>.
>