Expose config

Had to implement some functions, ignore a few that SWIG choked on (JSON related)