Adding the concept of state.
Merge pull request #3 from cyberswat/NMDDRUPAL-23

Adding the concept of state.