Added cuda run test to build system so that configure doesn't erroneously report cuda as working on systems that provide the tools to compile and link cuda code but do not provide the dynamically linked libraries to cuda binaries.
Changed build system so that it leaves out the libraries cudart and cufft if the cuda checks failed. Properly fenced all the code depending on those libraries. Unfortunately the fences don't work because the precompiler constant CUDA gets set even when the checks fail.
Configure script now only defines the symbol CUDA if all checks for cuda, including the run check, succeed. Since in that case, the cuda libraries are left out and all cuda code is fenced off, this should produce a working ESPResSo binary even on system where the cuda build tools are properly set up but the dynamic libraries are not properly referenced.
Extensively tested build system with respect to different proper and broken cuda setups. Found and fixed two more bugs, one in the code fences and one in the cuda indicator for the makefile.
Added location information of cuda headers also to CC, so that header files which contain declarations referencing cuda datatypes can also be processed by compilers other than nvcc.
Merge branch 'cuda_autodetect' of git://github.com/rempferg/espresso into cuda-autodetect
Fixed CUDA autodetection.
Test new features BOND_ANGLE and GRANDCANONICAL.
Some fixes to bonad angle stuff.
BOND_ANGLEDIST can compile again.
Fixed gcc 4.6 warnings.
Fixed the fix.
Merge branch '3.1'

Conflicts:
	src/comforce.c
	src/debug.c
	src/iccp3m.c
	src/maggs.c
	src/mmm2d.c
	src/p3m-dipolar.c
	src/p3m.c
	src/tcl/statistics_tcl.c
Added GRANDCANONICAL to NEWS.
Merge branch 'master' of github.com:espressomd/espresso
Header of maggs.h.
Fixed wrongly removed debug variables.
p3m: Make sure p3m isn't startet with nonmetallic epsilon and noncubic box. This is not implemented and would result in wront results.
Corrected faulty mesh density calculation in P3M tuning.

Conflicts:

	src/p3m.c
Fixed wrong starting mesh calculation in p3m tuning.