clean up code

As per https://github.com/capistrano/capistrano/pull/319, I am now resubmitting the patch


Rationale:

for each `.rb` file:
- remove trailing whitespace for each line
- replace `\t` character with 2 spaces
- append `\n` before `EOF` if not existed already

@carsomyr What do you think?