Fix core order/adjustment spec

It was failing most likely to the default ordering in postgres. I
changed it so that it doesn't depend on the order to be valid anymore

Fixes #3591
Add Gemfile for sample project, add spec task to Rakefile and set it as the default task

Fixes #3589
Update selenium and remove uneeded gemfile additions.