Added serialization to the control tree. Now allows rendering of the control tree.