Added REST functionality for configAPI

Same here as below, reword to `when no callback was provided` to make it clear we're passing in null or nothing at all