Delete old distribute and sage files
fix 3d graphics TeXForm bug
release.sh files
documentation Makefile platform independent
Avoid infinite recursion formatting (a+b)[x] (issue #151)
Parenthesize f[a] in f[a][b] if necessary (issue #151)

Fixes missing parens when formatting (a+b)[x]
Add tests for issue #151
Fix precedence when parenthesizing heads

Just set this to 670, as it looks like this is the value that
Mathematica uses.
Merge pull request #166 from bnjones/issue151

Fix for issue #151: problems with (a+b)[x]
Merge pull request #164 from sn6uv/m6

Remove old files, fix release bugs
Don't use colour by default if TERM is 'dumb'

As well as doing the right thing in environments where TERM=dumb
normally, this also allows mathics to run under Comint mode in Emacs.