Updated for capistrano, reduced code dependency, allowed install without sudo

Hi,

I've made a few changes, relied upon available methods in capistrano and written specs to help along the way.

Cheers,

Tom