Improved arrangement of stylesheets and scripts

- requested stylesheets are emitted even if not set in the template
- requested scripts are emitted even if not set in the template
- scripts are now emitted in the header, request with defer attribute
where appropriate
Fixed input type="select"
DATA now uses PEN and skips unneeded sanitation
Paladio only sets headers on non blank documents
Database now allows to configure charset
Added charset to database configuration