Rails port setup

There was a bunch of things I needed to do to get this running on my (Linux) machine.