Rack session id for Rack

I was test this gem Single Sign Out feature with Rails 4, When diagnosing issues, I noticed rack session id did not extracted correctly.

This pull requests contains the following changes:
 * method parameter order consistency
 * single sign out fixes for Rails 4

This change break some of backwards compatibility, I will make a commit in this PR to fix Travis tests.