Add missing preamble to Cache_Database class.
Add four extra query type constants to Database override class.
Add Database::CREATE to queries where applicable.
Add Database::UPDATE to queries where applicable.
Add Database::SELECT to queries where applicable.
Add Database::INSERT to queries where applicable.
Add Database::DROP to queries where applicable.
Add Database::ALTER to queries where applicable.
Add Database::TRUNCATE to queries where applicable.
Add Database::SELECT to queries in Search class.
Add Database::RENAME to queries where applicable (and add to Database override class).
Fix typo in bootstrap: class "gallery" --> "Gallery"
Add URL::file() in override class.  It's gone and there's no K3 replacement...
Rename Gallery's "Log" class to "GalleryLog" since K2 "Kohana_Log" is K3 "Log".
Note: simply extending theirs isn't easy since it's called during Kohana::init().
Update class definitions (and calls) in GalleryLog.
Fix references to Gallery's "Log" --> "GalleryLog" (58 places).
Fix "Log::add" --> "Log::instance()->add" and levels (e.g. "error" --> Log::ERROR).
Update Database overload class for K3.
- remove __construct() overload.  These extra parameters don't appear to exist
in K3, and profiling is set by Kohana::$profiling.
- use Database::quote_table() to add the quotes and prefixes for us.
- move query() overload to Database_MySQL overload class so it gets used.
- change "$_table_name" --> "$_prefixed_table_name".  This isn't strictly
required, but we were a bit close to "$_table_name" and "$_table_names_plural"
Update for K3 HTML::style() and HTML::script() syntax.
Change Cache_Database::set_with_tags() to use ORM and check if cache is new or existing.