Restructured preview window, added first editor UI

Also, lots of minor additions.