Use the proper model's connection for index lookup

Also uses #foreign_key instead of #primary_key_name (which was just
plain wrong).
Use proper unix exit code

closes #4
Bump version to 0.3.0

Also update README for no-Rails-2-support change.