[MRG+1] adding support for class_weight in fit method

This should solve #3928, unless we decide to go the route of warning. 
To test properly warning, you need to clean the warning registry. To avoid that tedious thing, I would use assert_warns.