Extracted common code from reaction processes so that a new reaction process can be described by 3 (small) functions a predicate, a reaction and a percept to generate when the reaction is complete. Added boredom process.