changes the trim_revisions method to never delete the most recent approved item, we'll delete newer unapproved items instead; esp. needed when turning workflow off so we only end up with the most recent approved items.
Update yui to v3.16.0
Update new datepicker widget to v2.2.5
Changes logic for displaying 'approve' button to 'approve' perm plus 'edit' or 'create' perm
Fixes search showall view (had extra <form> line
Standardizes showall type view by naming each iterated item as $item instead of by model type or simply $record
Standardizes template variables by passing them through controllertemplate instead of moduleSelfAwarenes() and (re)names modelname to model_name and table to model_table for consistency and to prevent collisions in some templates
Fixes jquery tagpickercontrol to allow spaces without entering quotes (so it works like the traditional tag picker
Removes some redundant code for variables already in templates, fixes warning for 'common' templates which have no controller properties
Fixes adding the 'controller' name to a form block
Merge branch 'develop' into bootstrap3dave