Cleaned up TP test case

* broke out linuxcnc_control into its own file
* debugged the test script so that it actually auto-starts LCNC now
* made a profiling script to almost completely automate a test run
Updated test.sh to auto-run a program
Moved tcSetTermCond to tc.c
Removed STATIC macro
Purged block comments with preprocessor macros
Used memset for tpInitializeNewSegment
Reformatted saturate to have brackets instead of single line if's
Renamed emcmotDebug queue to tp to match naming convention
Purged dangling whitespace and cleaned up comments
Tried to move stuff around but something's broken
Revert "Used memset for tpInitializeNewSegment"

This reverts commit 77cefadf54e4d70ba8b437ce6c6a31834eb15e03.
Added DEBUG flags to control TP debug from command line
Misc. style cleanup
Bugfix for single-stepping
Updated test runs
Fixed a stupid bug where rapid traversing broke pause
Moved syncdio to TP_STRUCT
Revert "Removed STATIC macro"

This reverts commit dc9947af28684f30cdf4e3cfb6c55d1938abaa03.

Conflicts:
	src/emc/kinematics/tp.c
Tweaks to arc test
Profiling fixes and speed improvement for feed override