added docblocks to functions.
removed obsolete second argument from function generateCalendarFiltersFormContent().
consolidated one-off form builder functions.
moved function generateCheckboxElementsFromArray() to templating helper script.
removed commented out markup.
converted templating function to template script.
Merge pull request #290 from stopfstedt/view_template_cleanup

converted calendar filter dialog templating functions to template.