Factored out settings/config support
Fixed issues with handleError / and put