kellewic changes

Merged urbanski config changes but moved the code to main() and added a config option. Also created separate def for get_response() to wrap checks in (403/204).