Add event triggers to the Affix plugin

Wanted this for a project and saw someone had made an incomplete pull request before(https://github.com/twitter/bootstrap/pull/4712).  I took the feedback there from mfansler and fat.

I tested this on Chrome(27) and Firefox(21). 

Let me know if more changes are required.