add macro for numpy < 1.7

as suggested by @longjon
https://github.com/BVLC/caffe/issues/44#issuecomment-32832810
add shebang to python scripts

for executing in the shell without call to python. Follows the example
of @kloudkl .
python requirements: don't fear the future
compile caffe without MKL (dependency replaced by boost::random, Eigen3)

- examples, test and pycaffe compile without problem (matcaffe not tested)
- tests show some errors (on cpu gradient tests), to be investigated
- random generators need to be double checked
- mkl commented code needs to be removed
Fixed uniform distribution upper bound to be inclusive
Fixed FlattenLayer Backward_cpu/gpu have no return value
Fix test stochastic pooling stepsize/threshold to be same as max pooling
Fix math funcs, add tests, change Eigen Map to unaligned for lrn_layer
relax precision of MultinomialLogisticLossLayer test
nextafter templates off one type
mean_bound and sample_mean need referencing with this
make uniform distribution usage compatible with boost 1.46
use boost variate_generator to pass tests w/ boost 1.46 (Gaussian filler
previously filled in all NaNs for me, making many tests fail)
change all Rng's to use variate_generator for consistency
add bernoulli rng test to demonstrate bug (generates all 0s unless p ==
1)
fix bernoulli generator bug
Replace atlas with multithreaded OpenBLAS to speed-up on multi-core CPU

issue: #79