Add a rails generator

This is slightly easier to use than the current instructions, and in the future we can add support for:
1. configuring javascript automatically
2. phoning home so that we know the integration is successful.