[WIP] Configuration Trees

(See https://trello.com/c/wpI2gX5I/13-configuration-trees.)
[You don't have to reply to these. See my main comment.]
Also, use of CHashMap should be considered for performance reasons instead of a linear search.