Refactor data_transform to allow datum, cv:Mat and Blob transformation

Move data_mean into the data_transform class to facilitate data transformation. 
This way Data layers don't need to hold it and pass it all the time. 

It might be better if the comment didn't duplicate the code. If the condition changes this comment needs to be updated too as it is.