Handle daemon restarts

Start the daemon on new install, stop it before package removal. This
solves a bug with the package being non uninstallable if the daemon was
running

Change-Id: I8484bd703a1163987c79a619ff530836bd0f1b92