Make it work on Django 1.7

I changed some lines to make it work with Django 1.7b4.

I also updated all the libraries and templates used by bootstrap-calendar from its git master.