Show input amounts and fees in TxToJSON.

In TxToJSON (decoderawtransaction / getrawtransaction), show input
amounts of transactions as well as fees for better checking of
correctness.
Decode name operations in TxToJSON.

Decode name operations in TxToJSON for better results in
decoderawtransaction and friends.
Handle pay-to-pubkey in ExtractDestination.

Handle OP_PUBKEY also (and not just OP_PUBKEYHASH) in
ExtractDestination, so that those transactions are decoded correctly.
Implement name_update in createrawtransaction.

Add support for name_update operations in the createrawtransaction RPC
call with a new, optional third argument.
Encapsulate rpc server's client stream.

Add a dummy 'game_waitforblock' method that only sleeps for now, and
encapsulate the RPC server's client streams into a new class that can be
used in the future to persist the streams in new threads for
asynchronous RPC calls.

Conflicts:
	src/bitcoinrpc.h
	src/namecoin.cpp
Implement async RPC calls.

Implement async RPC method calls that spawn a new thread waiting to
finish them.

Conflicts:
	src/namecoin.cpp
Add comment about fShutdown in RPC thread.
Move check for RPC server shutdown.

Move the check for RPC server shutdown above accept call, so that it
does execute when stop() was called.
Catch exceptions correctly in async RPC calls.
Remove superfluous #include from merge.
Add stub for waitforblock async call.

Add a new "waitforblock" async RPC call, that currently just sleeps for
some time instead of doing actual things.
Implement waitforblock RPC call.

Implement the body of the waitforblock RPC call, but the condition
variable introduced is not yet notified when new blocks actually arrive.
Actually notify threads waiting on new blocks.

When a new block has finished processing, notify all threads waiting on
the condition variable about it so that waitforblock now fully works.
Merge branch 'namecoinq' into async-rpc
Merge branch 'namecoinq' into extended-decode
Merge branch 'rawtx-nameupdate' of github.com:domob1812/namecoin into rawtx-nameupdate
Merge branch 'namecoinq' into rawtx-nameupdate
Merge branch 'namecoinq' into extended-decode
Merge branch 'extended-decode' of github.com:domob1812/namecoin into extended-decode
Merge branch 'rawtx-nameupdate' of github.com:domob1812/namecoin into rawtx-nameupdate