Merge pull request #496 from jeffdonahue/test-net-use-dummy-data

Make test_net use DUMMY_DATA instead of DATA (leveldb)
make Net::Init loop indices clearer
refactor Net::Init to call helpers AppendBottom and AppendTop
Merge pull request #455 from shelhamer/pycaffe-save

Save from python for net surgery
add option for lmdb
add tests for lmdb of datalayer (copied from test_data_layer.cpp)
fixed cpplint error
lint
unify test_data_layer tests
unify data layer tests: was copied four times for all combinations of
cpu/gpu and leveldb/lmdb; now just one copy of each test body
add net surgery link to docs (+ drop old comment)
Merge pull request #495 from jeffdonahue/refactor-net

Minor Net::Init refactoring: name loop indices, add helpers
add lmdb support for convert_imageset
add lmdb support for compute_image_mean
fix string compare error
Add comment for how to set the CUDA path when cuda tools are installed by the package manager.
Merge pull request #431 from mavenlin/lmdb

Add support for LMDB (LevelDB alternative)
in Caffe::SetDevice, call cudaSetDevice before Get

Otherwise initialization will be performed on whichever device is
default.
Add comment to Makefile.config.example about DEBUG flag issue in OSX per #171.
Merge pull request #507 from longjon/set-device-early

Fix Caffe::SetDevice to avoid initializing on default device