api changes

collection.getdocumentbykey -> collection.getdocument() (can pass id or
key)