Bug 1095234: Moving secret token generation into post_deploy action hook

Secret token wasn't generated upon hot_deploy. 
Fixed by moving the secret_token generation into the post_deploy action hook.