Drop root privileges if necessary.

This makes it possible to safely call dokku commands as root.
`plugins-install` is an exception, as it requires root privileges.

Unfortunately, this means that plugins cannot create commands that require root privileges. They must call `sudo` on an individual basis.