Refactor script into classes, add tests
Add .gitignore file, remove gem file