swe styles
adding config for papi domain and context.
adding common config function so that it is easier to alter for testing.