added function to cancel
Merge branch 'rc4' of github.com:WSO2Mobile/mobilepublisher into rc4