Further simplify the data layers and extend the MemoryDataLayer

Completely remove the duplicate codes of the data layers.

@geenux, @shelhamer, @jeffdonahue
Do you mean `LayerSetUp`? Please commend on 200e7b9.