initial revamp of torch7 tree
Merge branch 'master' into newpack

Conflicts:
	extra/nn/test/test.lua
removed random dependency
cmake files cleanup
{min,max,sum,mean,var,std}all now without 'all' in lua
Merge branch 'master' into newpack
Merge branch 'master' into newpack
Backward compat for Sqrt.
correct dimensions in nn dok and add apply to tutorial
corrections/additions to dok
dim check was correction on spatialsubtractivenorm
1D view in Jacobian was assuming the input tensor was always aligned to offset 1 of its storage and has the same number of elements as the storage.
Add reset function to module.lua and Sequential.lua. CmdLine accepts ignore=false for string function
gradInput[2] has to be same shape as input[2]
Fixes typo in documentation of Euclidean module
Removing documentation references to 'lab' package
corrected a lot of warnings, mostly due to unused variables
Implementing a call operator for nn modules and criterions.
Added proper functions to retrieve paramters for table-based modules
Fixed Jacobian test. Missing zero() in IO tester.