Move config.[ch] from brickd here