Added config state, and config service to hold global data.