fix bug for resizing images.
Merge pull request #976 from alfredtofu/dev

fix image resizing dimensions for IO
'caffe test' prints all scores and their names
Merge pull request #979 from jeffdonahue/caffe-test-output

'caffe test' computes and prints all scores and their names
fix memory_used_ by computing after SetUp
Merge pull request #980 from jeffdonahue/fix-memory-used

fix memory_used_ by computing after SetUp
Add "stable_prod_grad" option (on by default) to ELTWISE layer to
compute the eltwise product gradient using a slower but stabler formula.
remove warning about LRN layers in CPU mode
Merge pull request #981 from jeffdonahue/fix-eltwise-product

Make eltwise product gradient stabler (fixes issues with WITHIN_CHANNEL LRN in cifar_full example)
FIX web_demo upload was not processing grayscale correctly
Added contrastive loss layer, associated tests, and a siamese network example using shared weights and the contrastive loss.