Big, big, big refactoring inspired by #twoscoopsofdjango
Proper SECRET_KEY configuration handling