Upgrade bootstrap-datepicker and refactor date control accordingly

Fix #576.

This also ports the date control from coffee to JS

Signed-off-by: Don Naegely <naegelyd@gmail.com>