Added support for custom controls to be loaded and saved through the API.