Generalized transition functions to one function.

- doTransition(startState) now covers the responsibilities of doStartToStop() and doStopToStart(), which have thus been removed.
	* startState should be either "start" or "stop"
	* doTransition("start") == doStartToStop()
	* doTransition("stop") == doStopToStart()
	* doTransition doesn't check the value of startState very thoroughly, so make sure touse "start" or "stop"... or else.