Added context.remove function to remove child components. Added jquery plugin for destroyed event.