Replaced event tables with dynamic binding.

Also added a few error messages and another path global for the l10n
files.