Updated to use Rails 4. Fixes #13