Refactor for Rails 4. Bump up version to 1.0.0.