Templates modal converted to bootstrap

Same as #4575 #4563 #4562 #4561 #4514 #4513

Tests:
Follow the images to navigate:
![screenshot 2014-10-12 23 29 30](https://cloud.githubusercontent.com/assets/3889375/4607439/b3fc7364-524e-11e4-86d7-45230a611fbc.png)
![screenshot 2014-10-12 23 29 44](https://cloud.githubusercontent.com/assets/3889375/4607440/b7611c30-524e-11e4-90b9-d1036f1319e5.png)

And:
![screenshot 2014-10-12 23 29 58](https://cloud.githubusercontent.com/assets/3889375/4607441/ba0c1f16-524e-11e4-9f21-5d728f997c64.png)
![screenshot 2014-10-12 23 30 13](https://cloud.githubusercontent.com/assets/3889375/4607442/c1f354ce-524e-11e4-8448-3b4f11b424b0.png)

Here is what I got:
![screenshot 2014-10-14 11 25 38](https://cloud.githubusercontent.com/assets/3889375/4625921/e6ea2a5e-537b-11e4-851c-e51995dded9e.png)
![screenshot 2014-10-14 11 24 10](https://cloud.githubusercontent.com/assets/3889375/4625924/eceeb8ca-537b-11e4-8dd6-e4ac5674bead.png)
![screenshot 2014-10-14 11 23 53](https://cloud.githubusercontent.com/assets/3889375/4625927/f1fae3de-537b-11e4-8135-9ce170dd2278.png)
![screenshot 2014-10-14 11 23 07](https://cloud.githubusercontent.com/assets/3889375/4625933/f87ec946-537b-11e4-92da-103dd66975e4.png)

IE not available in this setup...