Further change the security preamble to use double quotes instead of
single quotes so that it's consistent with the Gallery preamble.

(in sync with vendor)
Merge branch 'kohana_3' of github.com:gallery/gallery3 into kohana_3
Fix a few more preambles that the regexp missed because they used "or"
instead of "OR".

(in sync with vendor)
Add security preambles
Improve diff() to handle arrays as well.
Improve inclusion list.
Fix preamble to use double quotes.
Lots of little fixes around the preambles, removed a lot of
complexity.  Abstracted out logic to make it more readable.  Tests
almost pass - what's left look like real discrepancies that we need to
fix upstream.