Fix tilde constraints without a stability suffix to work like wildcard constraints.

With this fix, a tilde constraint such as ~3.1 won't match unstable versions of 3.1,
but a wildcard constraint such as 3.1.* would.  This seems like a confusing
inconsistency, and so I have corrected it.
Refactor wildcard matching to use manipulateVersionString
Formatting updates for PSR-2 compliance.
Fixed lower bound of tilde and wildcard matches.

The lower bound of ~1.2 and 1.2.* style version requirements now uses >= 1.2.0.0-dev instead of
> 1.1.9999999.9999999.  This is more straightforward to read, and behaves equivalently.
Fixed upper bound of wildcard matches.

Follow-on from 95b4348afa2ee335d9dc1f9e2fecf579b49f7ddf
Detect version based on tag if HEAD points to a tag.
Fixed the existing test and added a new one for git tag version guessing.
Use --tags to get non-annotated tags as well.
fixed escaping the path (it's no cmdline argument anymore)
Added check for SVN WebDAV auth request (http://subversion.apache.org/docs/api/latest/group__svn__dav__error.html#gada0137a4ffc40251d2fce8ba06ca2e14, http://svn.apache.org/repos/asf/subversion/trunk/subversion/bindings/javahl/src/org/tigris/subversion/javahl/ErrorCodes.java).
Merge pull request #1986 from xrstf/fixed-hgdownloader

fixed escaping the path (it's no cmdline argument anymore)
Merge pull request #1990 from phansys/svn-auth

Added check for SVN WebDAV auth request
Use full diagnose command name
Merge pull request #1996 from thewilkybarkid/diagnose-command-name

Use full diagnose command name
includeIfExists function now works properly(return false now)
Almost PHPDoc problems fixed
PHPDoc fix
Merge remote-tracking branch 'getjump/master'
Remove unneeded use
CS fixes