Moved settings to the scenario module

Settings are now held in the scenario module.
Failure modules now have a coroutine that waits until the server is
ready to fetch settings and such.
Partial fix for issue #9 (but not yet complete).

General cleanup of the code (now DEBUG builds are equivalent to
RELEASE).