Switch to shadowhand's repo and rewrite preamble (in sync with vendor branch)
Add missing security preambles (in sync with vendor)
Merge branch 'kohana_3' of github.com:gallery/gallery3 into kohana_3
Fix up some issues introduced in db1b52f059faf6973a32d35a46da7bf05e00de7f

Database_Result::current() can return null if there are no results,
but ORM::find() always returns a Model so we need to use ORM::loaded()
in conditionals, not null checking.
Rename this since we're testing the Debug interface as a whole
Fix up a couple of places where we accidentally converted private->protected in fde0c2aa823540de09f5ce549550f1638279368a
Updated for K3 Database API.

all tests pass.