matcaffe interface improvements: maintain correct shape, add backward step, and get_weights function

Reshaped outputs of matcaffe forward to keep it parallel to the caffe representation.
Added get_weights from Ross to be able to get the weights from the network.
Added backward to matcaffe inspired by the pycaffe code (not tested yet)