New : Added CPApplicationDelegate protocol

This PR add the protocol CPApplicationDelegate