Sets dependency railties to greater than or equel to 3.1
Bugfix: The retina images were never served if the cookie was set before
The JS only checked and stored window.devicePixelRatio if the cookie was empty. So if the cookie was set before (e.g. through Google Analytics) the check never occurred and retina images were never served.