added an exception when secret key base is not set (refs: #3). Refactored configuration (refs: #5)