replaced the pulled code with proper gem-reference

The railtie now automatically makes sure, that the middleware is used,
and the included gem better respects the copyright of the used solution.