Adding bootstrap 3 compatibility (still work with bootstrap 2 if settings.bootstrap2compatible is true).
Fixes #30