Fix repeated field copy loop

Fix lint algorithm include

Fix spaces
Correctly apply padding to pooling layers when upgrading from V0
Merge pull request #760 from bhack/fix_loopcopy

Fix repeated field copy loop
Merge pull request #762 from rbgirshick/upgrade-pad-pooling-layers

Correctly apply padding to pooling layers when upgrading from V0
Use the same CXX for matcaffe as for the rest of the build
Merge pull request #766 from rbgirshick/matcaffe-cxx

Use the same CXX for matcaffe as for the rest of the build
numerical stability improvement
Merge pull request #773 from qipeng/lrelu

Leaky ReLU numerical stability improvement
add gflags dependency to caffe.
add gflags dependency doc
gflags should preferrably be installed before glog
travis
travis - does adding cflags help? want to keep minimal invasion into gflags installation.
turns out that glog does not compile with gflags 2.1 - compiling glog first and then gflags.
I am really bad at debugging travis.
travis: gflags still needs -fPIC, otherwise it makes caffe cry.
Merge pull request #776 from Yangqing/sweep

Gflags dependency & misc
include benchmark.hpp
Adding new caffe binary that does everything in one binary; deprecating device_query, finetune_net, net_speed_benchmark, train_net
lint