make Net::Init loop indices clearer
refactor Net::Init to call helpers AppendBottom and AppendTop
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.
Merge pull request #507 from longjon/set-device-early

Fix Caffe::SetDevice to avoid initializing on default device
Merge pull request #504 from leelurch/Config-Example-Ubuntu14.04

Add comment for how to set the CUDA path when cuda tools are installed b...
Set device_id at the begining of Solver.Init() to avoid using memory in the default GPU
Merge pull request #521 from sguada/set_device_id_at_init

Set device_id at the beginning of Solver.Init()