Move debug() decorator out of gruntz.py (issue 2163)

http://code.google.com/p/sympy/issues/detail?id=2163