Remove obsolete templates and PHP list controllers
Add code to enable multiple formatter simultaneously

Also move record information to document.record from public variables
like recordId in the record editor.