More fixes to event handling via update/delta. Add resize handling and viewport borders.