Back up existing configuration data if it exists
Add unifi_enable only if it doesn't exist already
Stop UniFi and mongod cleanly before beginning

Checks for an rc script, and then makes sure the unifi and mongod
processes are really stopped before backing up and proceeding with
reinstallation.