move config util from rest-more to rest-core (not specific to rails)