Add Capistrano 3 support with backwards compatibility

Building upon the Capistrano 3 upgrade done by @clintonb, I've augmented the task to also add backwards compatibility for those who are still using Capistrano 2.0.

This should resolve #52 and #46.