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
addd CUDA_KERNEL_LOOP macro
fix kernel loop bugs, compiles and passes all tests
Merge pull request #239 from jeffdonahue/fix-kernel-loop-macro

Fix CUDA_KERNEL_LOOP from @blackball
fix remaining issues related to CUDA_KERNEL_LOOP
fix remaining lint errors
use CUDA_KERNEL_LOOP in padding layer
Merge pull request #240 from jeffdonahue/rm-cuda-kernel-loop-comments

Fix minor issues related to CUDA_KERNEL_LOOP -- merging myself as I'm only adding/removing comments other than the addition of CUDA_KERNEL_LOOP to PaddingLayer (and checked that this passes all tests).
add libcaffe.a to TEST_ALL_BIN dependencies in Makefile
also fix for runtest
Merge pull request #236 from jeffdonahue/test-all-bin-makefile-deps

Add libcaffe.a to dependencies for TEST_ALL_BIN
arrange example images, update paths, bring back imagenet_pretrained
Merge pull request #231 from BVLC/next

0.99 release
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