Refactor config

Moved core config functions to core namespace. Left config setters in config namespace.