Hdf5 output layer

This PR resolves #213 and also closes #220.

@sergeyk, please review and check whether this is [what you asked for](https://github.com/BVLC/caffe/pull/220#issuecomment-37869299).