Debounce resize events

This is for #37.