Major update

Compatibility with bootstrap 2.X and 3.X
Add the canclose parameter
Autoselect the css class from the type