Add utility function to convert OpenCV image into Datum and Blob
Add transformer to the memory data layer
Remove pthread which has been replaced with boost thread
Move transform param one level up in the proto to reduce redundancy