Rails Integration

Note that I had to alter `setup_options` to pass a block with the command-line options, so that we can determine if Rails should be loaded.

This can't happen after the configuration files is loaded, because the configuration file may be using other parts of the Rails environment (in my case, it was a configuration library).