Summary buttons to support drafts

Conflicts:

	src/resources/apps/fr/summary/view.xhtml
Don't include drafts in count for anonymous users
Allow more ev:* attribute without prefix
Fix: autosave to work on new page
Port SQL changes for autosave to DB2 persistence
Delete draft on save, add missing test on draft
Simplify insert using left outer join
Fix: SQL error when save data with attachment