Add postactivate hook template and update settings to pull secret key from user's environment