Simplified code (transparent changes only).
Added comments and RDoc-compatible documentation.

Removed debug code (logger calls).

Misc. code simplifications, cleanup, and variable renamings.
First stab at a log_searches method.
Added RDoc documentation for log_searches.

Changed log_searches API to default arg to param[:search] and to allow
passing the SQL query directly instead of passing the model or the
model method and method arguments.

Added current_user to the output.
Added log_searches calls to most controllers that involve searches.
Revised current user output to log both id and e-mail address.
Merge branch 'master' of https://github.com/PecanProject/bety