REST API for Caffe