Merge branch 'dev' into PLAT-170
Adding a Bernoulli trial helper for event sampling.

This class provides an interface for sampling events at a given rate.
See http://en.wikipedia.org/wiki/Bernoulli_trial.
PLAT-170 Log sample of SQL queries w/ WikiaLogger.

Inserted random (at a rate of 1%) sampling of SQL queries in
DatabaseBase around doQuery. The instrumentation adds the query, the
execution time, the function, and the server role to the log payload.

With this in place, we can query using Kibana for the URL, the query
string, the server, the db name the calling method:function, and the
elapsed time.
Remove FIXME comment.
PLAT-170 Adding tests 4 changes to DatabaseBase.

Adding tests for the changes to DatabaseBase. I added a new path under
tests/unit/includes/db as this should be a proper unit test and so I
don't think belongs in tests/phpunit/includes/db/DatabaseTest.php. The
core tests are also broken and have unwanted side effects (like dropping
the users table).
PLAT-170 changed sample to shouldSample ...

Changed sample to shouldSample. I think this will improve the
readability where it's used.

Changed the range checking of the probability provided to a check that
will throw an exception.
first pass at ImageReviewTask
add to autoload and enable task
refactoring PromoteImageReviewTask to function like the legacy task
enabling PromoteImageReviewTask (modern)
merge origin/dev into jobqueue-promoteimagereviewtask
Merge remote-tracking branch 'origin/dev' into jobqueue-promoteimagereviewtask

Conflicts:
	extensions/wikia/ImageReview/modules/PromoteImage/PromoteImageReviewTask.class.php
merge origin/dev into jobqueue-imagereviewtask
Merge remote-tracking branch 'origin/dev' into jobqueue-imagereviewtask

Conflicts:
	includes/wikia/tasks/TaskRunner.class.php
PLAT-170 whitespace cleanup
run maintenance script directly instead of going through backend/bin/run_maintenance
remove unneeded else statement
pull request feedback
removing <insert description here>
making task creation easier to read