More methods in package controller, fixed some bugs

fixed bugs in Builder classes of PMController
uninstallPackage method	
prevent NullPointerException if command is null
added overloaded methods for listPackages, uninstallPackage and installPackage
added clearData method for PMController
options to run all commands as root in pm