Adding rubocop, travis, and gitignore. Fixing rubocop failures.

i thought `%x` was the recommended way?