Adds helper method for auto binding events.

You should probably put it somewhere else, but this is the sort of thing I was thinking.