Extract story-state-change-detection algorithm

Placing it in rally library file for easy comparison with future function that will determine story state without the benefit of looking in a discrete time window of revision messages