Basic windows implemented; added initial window event infrastructure