Add a script to generate a standalone ruby script

for easier packaging and distribution