Draft doc add command.
Call validate() after template parse.

In user add command.
doc/add: verify template parse.
Support passing error definition to req.error().
Add EDATABASE to db/add.
Propagate EDATABASE.
Fix last reference when looking for error args.