Moving the layer name getting implementation from solver to net class.
Merge branch 'stat' of https://github.com/DCGM/caffe into stat