Upgrade to Rails 4

closes #4