add support for :both => :foreign_key_only

This commit adds support for setting the :both option to :foreign_key_only to the Rails3 code.   It doesn't add it to the README, the other versions or to the tests, which should be done.

I'm not particularly wedded to the API I chose for this feature, but the API I chose has the advantage of moderate backwards compatibility.