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

We can turn off this rule if you prefer `%x` or possibly even customize it to prefer `%x`.