add clean method

add a clean up method that can be either overridden by the client or associated with a clean up executable given in the configuration. 

KQuery will use it to clean up in run-time the old packages and Hops will be able to implement the strategy they want in a bash script