CE-108 Move ImageReview classification logic away from Perl script

DO NOT MERGE

See also: https://github.com/Wikia/backend/pull/92
Can we use these constants here instead of raw numbers?