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

Guess not.