Added support for symlinks on Windows (#9379)

Fixes #9379.

The semantics and behaviour should be the same as the *nix equivalent, except where documented.

I've tested this against Windows Server 2008 R2, and compared it with behaviour exhibited on CentOS 6.4.