Add Rubocop, fix warnings and cleanup

![robocop-reboot-details-joel-kinnaman](https://cloud.githubusercontent.com/assets/425073/5219648/6b76e068-7628-11e4-9c07-e54d44f4e4b3.jpg)