Update store to work with rack 1.5.2 and rails 4