AjaxView improvements, date editing, modal support

Reinstated creation of buttons with additional attributes.
Added AjaxView stuff for working with bootstrap modal dialogs.
Added date editing - currently not perfect, need to look at how the
bootstrap datepicker interacts with AjaxView javascript - looks like
they fight over the input contents a little.