Make middleware handle dynamic settings changes, and be less tolerant of invalid settings.
Fix signature of signal handler
Merge pull request #22 from sdelements/fix/middleware_settings

Make middleware handle dynamic settings changes, and be less tolerant of invalid settings.