Breaking changes: updated to provide better unit tests, conform to PSR-0, sid_token should be passed to the action -- sorry.