Introducing States class library

Added state machine implementation as States project;
Added tests project for States;