Initial refactoring of mining
Minor code improvement
Extra error handler in transaction_listener
Fix the transactions command line command handler
Minor transaction_listener fix