Generate a random SECRET_KEY if it is not in ENV
Settings refactor

* Remove unwanted comments.
* Organize block settings