added util for getting home directory of user

Ignore-this: 689f99c6a0341cd95ae7fb956a4f8739

the code duplication was too damn high!

darcs-hash:20140223030855-c21fe-8df78b2ef2e5d8aa043bc3c82f421515295b5311
added support for unicode file names for contact files on windows

Ignore-this: f3d8f8d9e9f0ae65f1dc8a30c87d80d6

darcs-hash:20140223031018-c21fe-75ced860128e9dc93a53c9c7a60d4f8d1b6a8ea9