Extract out device-tree generation and compilation into an exported api. (#197)