Fix hidden.bs.tooltip and shown.bs.tooltip events firing too early in tooltip.js

* events fire only after the CSS animation is completed
* this fixes also events in popover.js (as it inherits from tooltip.js)
don't create new Tooltip/Popover objects just to destroy them immediately
Add 'collapse' class back after expanding
Only preventDefault on click on [data-toggle="modal"] when the element is a link

In it's current state Bootstrap always prevents the default action for a click
event on `[data-toggle="modal"]` elements
(see https://github.com/twbs/bootstrap/blob/master/js/modal.js#L233).
Instead this should only happen when the element is a link.
Clear timeout on destroy.

Clears the internal timeout on destroy so that hanging timers are not fired.
Replace UTF-8 characters in s3_cache.py with ASCII characters
Fix wrong indent in .jscs.json
Merge branch 'tooltip-events-fix' of git://github.com/lukaszfiszer/bootstrap into lukaszfiszer-tooltip-events-fix

Conflicts:
	js/tooltip.js
build js
fixes #10675
Add docs-assets/css/docs.css to csslint too.
README.md: switch to the shields.io dependency badges theme.
Update dependencies.
Merge pull request #12020 from XhmikosR/package

Update dependencies.
Merge pull request #12019 from XhmikosR/badge

Change david-dm theme to make README badges uniform
Merge pull request #12021 from XhmikosR/master

Add docs-assets/css/docs.css to csslint too.
Merge pull request #12010 from ZDroid/wrong-indent

Fix wrong indent in .jscs.json
Update dependencies

Updates grunt-html-validation and grunt-jekyll dependencies.
Merge pull request #12022 from ZDroid/update-deps

Update dependencies
Merge pull request #12009 from ZDroid/no-utf8-py

Replace UTF-8 characters in s3_cache.py with ASCII characters