Wallet: move processPendingTx & processConfirmedTx to prototype

also, move processTx out of Wallet scope
Wallet: move getPrivateKeyForAddress to prototype

also, move the assert to the end to simplify the logic
Wallet: remove unncessary comments
Merge pull request #2 from weilu/dcousens-wallclean

Clean up Wallet constructor function