support proplists as params for doc CRUD

 - doc CRUD takes optional proplists
 - refactor tests