add monkey patch for handling association queries

source: https://developer.uservoice.com/blog/2012/03/04/how-to-upgrade-a-rails-2-3-app-to-ruby-1-9-3/
https://gist.github.com/cypriss/1976864
Revert "modify visitor find_or_create_by"

This reverts commit a8059a3aca6ea77e522bef0df2499df1ee8b9cce.
Revert "update remaining find_or_create_by_identfier calls"

This reverts commit 68dd3684bdb68ab97c91e55ea60b9bf0cf1d32dc.