Doc fix.
New support script to store language variables in the database.
Fixed various error variable accesses.
Template now looks for language variables in the database.

This should produce faster startup times, avoiding the need to read all the language files into memory at script start.
Hopefully the database will handle caching sensibly enough to avoid too much overhead, but if it proves to be a problem
the result from the database could be cached as needed...