Resetting (Master)Secret on RESTful API endpoints

Done for [AGPUSH-208](https://issues.jboss.org/browse/AGPUSH-208)