Removed dead non-thread control code.

- All of the stuff related to states and the old walk method from
  nervous_system has been pulled out.