Added packaging.

Moving towards a more 'standard' layout for Ruby scripts.
Split up script into multiple files.