Improved speed of newgui by removing decorator overhead. Improved bootstrap. Split newgui into 3 files