Make imported targets available as importname.targetname

Also add properties to access imported files' path and directory.

See ticket #620 (http://www.phing.info/trac/ticket/620); this cherry-picks dd97b791d6527a6f9e2fd13f50327cc2cd990dd8 off unstable-3.0.