add factory header to caffe hpp

(very short PR - I will merge when travis passes.)