pycaffe: allow unspecified mean. Fixes #671.
pycaffe: reorder exceptions

It doesn't make sense to complain about input not being batch-sized if
it isn't even 4-d in the first place.
pycaffe: test channel_order and input_scale against None

An input_scale of zero should produce warnings/errors/infinities rather
than being the same as an input_scale of one. A channel_order of () or 0
should not be equivalent to the default ordering.
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
oops, wrong deprecation message (should have --)
Add gradient checks for infogain loss layer, letting it take the
infogain matrix as the third bottom blob.
using caffe::string to be consistent with other string definition.
Merge pull request #793 from jeffdonahue/infogain-test

Add gradient checks for InfogainLossLayer
LOG(ERROR)->LOG(FATAL), and misc script changes.