First semi-working version of an editor and preview window updating in realtime.