fixed toggle API
Merge branch 'master' of https://github.com/makilian/Mist
fixed including css/javascript for date picker.