Refactor service configuration resolution per region prefix.

Update tests for new changes
Use nodeRequire() on fs module so browserify ignores it