Use Rails.configuration.to_prepare to load patches
Fix require_dependency
Add RSpec tests and Travis job