modifed orginal repo by making it compatiable with Go 1.2 and took out SignRequestQuery and encodeSortedQuery.  Added encode funciton to replace encodeSortedQuery