Move TextBox class to WidgetsCore to allow other widgets to use it.