Rails 4 support. Closes #11.