Cleanup ConfSet, ConfGet, make more concise.

Removes ifdef's for readability by using strchr instead
of strtok.
More concise API for setting config values that
can be overrided or not (final values).
Function to prune all non-final nodes from a configuration node.