Update settings to dynamically create secret_key remove cloud9 middleware class