Rename symbols which conflict with Mathematica 9.
Remove some const declarations; these lead to compiler errors with IBM's compiler on the Blue Gene/Q
Handle merge conflict
Use CCTK_ macros instead of LC_ macros for looping
Do not generate integer constants

Do not generate integer constants; this may fail if they are arguments to two-argument functions (e.g. pow) with some C++ compilers.
Correct variables names for loop bounds
Correct loop bounds (once more)
SimpleWave: Re-indent and re-arrange change (no functionality difference)
Remove superfluous Join[] calls
Annotate grid functions in calculations with the regions that they read and write

Introduce global tags RequiredRegion, ProvidedRegion.
New function AddGroupTag. Use it to set Prolongation=None for RHS variables.
kranc: Don't rely on Mathematica exit code for detecting failure

When no licence is available, Mathematica still exits with a zero exit code.  This causes dependency-based systems such as Make to assume that the thorn was created successfully, when it might not have been.  To work around this, we perform a file operation (deleting a temporary directory) from within Mathematica, and check that this was successful after Mathematica finishes, and adjust the exit code of the script accordingly.

Fixes Issue #39.
Regenerate examples
Examples: Don't use removed LoopControl::printstats parameter
kranc.th: Add CycleClock thorn now required by Carpet
Merge pull request #92 from ianhinder/Mathematica9

Support Mathematica 9
kranc: Propagate Kranc exit code
CalculationFunction.m: Don't factor out repeated conditionals if the condition contains a gridfunction

This transformation would be wrong in the case of vectorisation.  It is usually used for parameter conditions.
Add test for IfThen factoring
Merge from master