quick fix to faciliate switching between test servers
Started implementing functions to test escrow functonality
some commenting and small changes
modified validateaddress to be more useful
added GetPublicKey(address) function
added Get- and DecodeRawTransaction functions
added GetDecodedRawTransaction(txid) function and modified WaitForTransaction(txid) to detect payments to any address, even if we don't have they private keys
WIP adding GetRawMemPool, GetBlockCount, GetBlockHash, GetBlock and overloading TransactionConfirmed and TransactionSuccessfull to work with non-wallet (multi-sig) transactions. None of this commit's code has been tested yet, will finish it when I get home later today.
fixed some functions in BtcInterface. TransactionSuccessfull() now seems to work correctly even for non-wallet transactions, but I'll have to test that properly. Need to finish TransactionConfirmed() or else we can't check confirmations in non-wallet transactions.
fixed bug in TransactionConfirmed where the wrong variable was used for minimum confirmations
Finished GetBlock(), TransactionConfirmed and TransactionSuccessfull functions. Need to do more testing but it seems to correctly check payments to non-wallet multi-sig-transactions for amount and confirmations.
Possible vulnerability in my transaction verification code detected. Does anyone know more about raw transactions?
Added all missing functions needed to create, sign and send raw transactions from p2sh addresses. Will add comments in next commits
ESCROW MOTHERFUCKING WORKS THEORETICALLY - Added all missing functions required for receiving, verifying, creating, signing and sending to and from p2sh addresses and tested them successfully in a simple 2-of-2-escrow.
A lot more testing needs to be done and there are still some things I need to check to make sure noone gets scammed but all major issues are out of the way.

In the next commits I will do some cleaning up and commenting, create some helper functions and structures to hold information about the current state of outstanding escrow transactions and add GUI items so more people can start testing how well it actually works.