Switch to clang
Fixed pycaffe cmake scripts.
Added changed proto CMakeList.txt file to.

changes. Lines starting
added updated FindProtobuf.cmake.
Added FindNumPy.cmake.
Same -Wl flag for clang and g++
Changed linking order: -pthread -> back.
Otherwise error:
/usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
change -lpthread to -pthread in linking

Compilation flags is already there
change linking order such that pthread comes in the back

This resolves an error with the static gflags library which would
other wise not link properly with an undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
error under Ubuntu 14.04.
SliceLayer: fix whitespace
correct naming in comment and message about average_loss
[cmake] move dependency finding to root CMakeLists.txt

In this way, custom include directories for the dependencies are
also available for tools/ and the bindings.  This is necessary for
example when someone is using custom built dependencies which are
not installed in the system's default directories (e.g. OpenCV includes
are required in tools/ through io.hpp)
Disable some builds
Fixed up python cmake file to not include layer_factory.cpp while compilig.