Modernise background illumination estimation

* Function much more readable using [CyToolz syntax](http://matthewrocklin.com/blog/work/2013/11/15/Functional-Wordcount/)
* Should be faster, too.
* Add automated tests for background illumination estimates
Is there a difference between imread from mahotas and imread from skimage.io? They seem to be used interchangeably throughout the code?