Mass democracy, the welfare state and European integration