start chown command

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
add chown function

There's not a corresponding client yet.

In the process, commonize some existing code, and switch some things to
nih functions.  (More of that should be coming)

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>