Converted error class to static.
Errors: Changed global $error to static.
DB: Real escaping, restructured select function.
DB: Automatic escape for strings and numbers.
Updated wiki and session to the new DB methods.
Merge pull request #2 from NioniosFr/master

Refactoring for database and error class.