Window staff peep functions

Cleaned up the code in window_staff_peep.c to follow the layout of window_peep.
Added some events and other things.