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. Then the additional feedback from SimeonC and fat in https://github.com/twbs/bootstrap/pull/8113.