Implemented walletmanager.cs.

Implement coind getwork() call.
The getwork server now correctly replies getwork calls from miners.