Fix track actions for Ruby 1.8

`{symbol: value}` Hash semantics are Ruby 1.9 or above only.
Fix authorization for Ruby 1.8

Config file wasn’t written as Ruby 1.8 needs to get a handle via
`File.open` before being able to write.
Merge pull request #2 from kopischke/master

Ruby 1.8 compatibility for setup and track actions