Trajectory gen, memory cleanup, and octopod class

Added functions to leg to generate linear and arc moves, cleaned up heap
pointers to prevent memory leaks, and added an octopod class to control
the whole shebang!