Move global RNG state into cutorch table.

Create a new struct for cutorch's global state, THCudaState, currently
only containing the global RNG state, THCudaRNGState.
All RNG methods take the state as their first argument.
Merge branch 'local_state' of github.com:dominikgrewe/cutorch into local_state

Conflicts:
	TensorMath.lua