Parallelizing most common for loops (TensorMath).

Ideally this should be done withing the apply/map macros,
        but for some reason it's not trivial.

For now I've provided a macro called for_omp, which provides
a parallel for loop. The variable used as an iterator must
be declared within the for loop scope:
for_omp(long i=0; ...) {
Merge branch 'master' of github.com:andresy/torch
Reverting c99: this causes compilation problems for LuaJIT.
Unsafe omp //.
last changes from Mike Pall
THC headers installed along with TH headers

... to enable development of external cuda-based packages.
Merge pull request #151 from akfidjeland/thc-headers

THC headers installed along with TH headers
Added nn.Max() for CUDA, with restrictions.

The main restriction is the dimension, which has the
be the innermost dimension.
Fixed Max.cu (wrong indices, and the test was not catching it)
added support for luarocks (2.0.13)
remove torch7 rock
oops, added missing FindMD5.cmake file
install torch7 fake rock if needed
find md5 bug fix
luarocks: added default servers including torch-rocks from github
Added a flag to deactivate CUDA.
luarocks: fix external package install
Merge branch 'master' of github.com:andresy/torch
Commenting out socket dep for now: it's too hard to get to work.
Merge branch 'master' of github.com:andresy/torch