Add accessors for DownloadHandle

Added downloadGetBitfield, downloadGetNumPieces,
downloadGetConnections, downloadGetErrorCode,
downloadGetFollowedBy, downloadGetBelongsTo and
downloadGetDir functions.
Rename gidToString as gidToHex, add hexToGid and isNull