Add SECURITY doc

* Add a document going over Yokozuna security and how to use it.

* Fix security check in HTTP search.

* Make some small code tweaks.