Fix svn fetch_revision error

Escape backslash of `sed` command argument. Close #1061
Use `svn log -l 1` to get the last revision of working directory.
`svn log -r HEAD` outputs empty result if the working directory
is a subdirectory in the repository and a directory outside the
working directory has latest revision.

`svn log -l 1` shows only the first 1 log message.
The default revision range for a local path is BASE:1.
http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.log.html
Remove -v from mkdir options
Ensure capistrano CLI options override rake's

rake's implementation of #sort_options was ordering
cap's version of --dry-run first, rake's second.
During option parsing, this meant rake's was added last,
so it overwrote cap's.

This adjustment makes sure capistrano wins these battles.
Merge pull request #1130 from townsen/server_props

Improve server property handling
Improve handling of defaults for :set variables

Added set_if_empty method to DSL to allow conditional setting
of variables.

Altered standard Capistrano defaults so that they are not set
at the start of a stage if they have been previously set. This
allows variables like :default_env to be set in deploy.rb.
Merge pull request #1127 from mtwentyman/master

Ensure capistrano CLI options override rake's
Merge pull request #1026 from caligo-mentis/openbsd_compatibility_fix

Remove -v from mkdir options
Merge pull request #1070 from shirosaki/svn_fetch_revision

Fix svn fetch_revision error
replaced suggestion in config/deploy.rb to re-implement restart task for passenger with a suggestion to use capistrano-passenger gem
Merge pull request #1116 from betesh/master

replaced suggestion in config/deploy.rb to re-implement restart task for passenger with a suggestion to use capistrano-passenger gem
Using svnversion to capture svn revision number
Merge pull request #1013 from theunraveler/svnversion

Use svnversion to capture svn revision number
Use self. for clarity in class method definition

class << self is confusing for many people
Refactor and improve Host and Role Filtering

Update CHANGELOG and README
Replace HostFilter and RoleFilter with Filter in Configuration
Create list of filters from command arguments and ENV vars
Intercept the existing on() method to apply external filters
Update roles_for() and fetch_primary() to use internal filters
Improve Filter code

Split only valid lists of host names to avoid splitting a regex
containing a comma.
Define // syntax for regex in role filters
Treat all host/role filtering options the same

Command line —host and —role options
Environment variables ROLES and HOSTS
Filter variable hash keys :role and :host
Override netssh_options and use super

The existing method of using aliases is confusing
and unnecessary
Fix bug with filtering single server

Manifested by on primary() construct
Merge pull request #1140 from townsen/on_filters

Host and Role filtering improvements
fix remote_task inside a namespace

Previously defining `remote_task` inside a namespace resulted in
scoping the file name to the namespace. For example file named
config/database.yaml inside shared namespace would result in:
shared:config/database.yml

That is surely unwanted behaviour. Fix is simple. Introducing
Capistrano::UploadTask that inherits from Rake::FileCreationTask.
These Rake File tasks are not carrying the namespace in their name.