Bug #3, Tweaks to where and how configuration options are set and used

* Relates to, JuxtaLearn Cookie Authentication
* Uses a try-catch - for exceptions raised for missing/bad secret keys
* TODO: as I don't know about Elgg error handling it uses a PHP "die()"