consolidated code for setting phase change into AbstractPhaseStateChanger in order to avoid code duplication, see #188, did some other code cleanup
consolidated code for setting phase change into AbstractPhaseStateChanger in order to avoid code duplication, see #188, did some other code cleanup

phetsims/chipper,phetsims/chipper,phetsims/chipper