Prevent blob from being freed at end of if statement scope

Was causing nonsense data to be read, tripping the blob size
check in Blob::CopyFrom
Fix wrong argv check for whether a backward pass should be done
Set phase to TRAIN when performing backward pass
arrange example images, update paths, bring back imagenet_pretrained
Remove cudaSetDevice(1)

So it works when there is only one GPU
Fix shell script current dir bad substition errors
Wget should never be quiet
File naming convention requires that two words be split by a underscore
Merge pull request #242 from kloudkl/script

Fix shell scripts: current dir, wget output, and naming conventions
Merge pull request #221 from jamt9000/fix-dump-network

Fix dump network
fix caffe.proto style bugs
create file caffe.proto.v0 which duplicates current caffe.proto
move individual layer parameters to individual proto messages
move LayerParameter and individual layer param messages to bottom of
caffe.proto
remove LayerConnection from proto, bottom and top now in LayerParameter
NetParameter.layers -> layer
HDF5DataParameter message and concat_param
add duplicated params from InnerProductParam to ConvolutionParam and
PoolingParam etc, create InfogainLossParam
changes to layers etc to make 'make all' run successfully under new
caffe.proto
update tests for new proto format; now they compile