Add wallet return codes
Add create_before_detach argument to daemonize

The primary daemon must currently be created after forking because it
loads the blockchain on creation.