API INCOMPATIBILITY: File variable changes

File variable default value FileRef metadata is no longer taken from the File variable's metadata.

Added more example code to documentation in the 'working with variables' section.

Includes fixes for recent EC2 testing issues wrt Windows socket.getfqdn() and PkgResourceFactory testing with eggs.