Pass the model to the security context when checking credentials.
Apply the security check on the object return by ModelInteface::getWorkflowObject.
PHP-5.3 compatibility.
Merge pull request #12 from Adirelle/checkCredentialsWithModel

Pass the model to the security context when checking credentials.
fix merge
Create new interface for get states
Add help in readme