Enable removing applications from runtime

Add a switch "--remove" to enable the application removing
functionality, it can remove an application by its ID