Wip initial doc

Implements put/get/delete initial document functionality, with tests