Enable uninstall applications from runtime

Add a switch "--uninstall" to enable the application uninstalling
functionality, it can remove application information and resources from
platform by its ID.