Proper escaping in DDL templates + Events DDL
Added events DDL for access module
Added events DDL for stashes module
Added events DDL for sessions module

Also included are new global settings that control some aspects of
accounting.
Added events DDL for paidservices module