using Rack::Request insead of action_dispatch.cookies for compatibility with any Rack compliant app
minor changes
basic spec to check setting of cookies
spec helper file