Profile with ActiveRecord::Base.logger

[#60477624]

Get profile timings using ActiveRecord::Base.logger set so log can be
used to analyze queries without invalidating pre-optimization timings.
Timing samples are logged to
https://docs.google.com/spreadsheet/ccc?key=0Ah1hRHfpRW92dGxDRnN1ajJPWXlUWFBQNTdvWl9KZFE&usp=sharing
Skip uniqueness validations

[#60477624]

Approximately 12% saved in Metasploit::Framework::Module::Cache#prefetch
timing:
https://docs.google.com/spreadsheet/ccc?key=0Ah1hRHfpRW92dGxDRnN1ajJPWXlUWFBQNTdvWl9KZFE#gid=0.
Empty query pruning

MSP-8948

Check for new records to eliminate NULLs in queries which means that the
query was unnecessary.  This brings the time down -18.36% to 186.56
seconds from the last commit and a total -28.15% from the original,
unoptimized time.  Timing statistics:
https://docs.google.com/spreadsheet/ccc?key=0Ah1hRHfpRW92dGxDRnN1ajJPWXlUWFBQNTdvWl9KZFE&usp=sharing.
Remove profiling block

MSP-8948

Believe that part of the profiling block, potentially the open, is
hanging the build on travis-ci, so remove the profiling block.
Additionally, the block shouldn't be in the final merged code anyway, it
just needs to be there to verify the timing changes, which can be
written to reference the previous commit.
Remove documentation and profiling gems on travis-ci

MSP-9035
Merge pull request #8 from limhoff-r7/bug/non-essential-travis-ci-gems

MSP-9035 #land
Merge pull request #3 from limhoff-r7/bug/metasploit-framework-module-cache-prefetch-time

MSP-8948 #land