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. 

Ok  but it is very hard to refine this with only one developer testing on OSX. We doesn't have a osx build server. Probably this feature will never go in.