Refine error messages, add codes to populateRPCTransactionObject

This refines some RPC error messages whereby I tried to leave out low level details.

A few adjustments were made for consistency.

Indentations were low hanging fruits and based on surrounding code, not overall.

populateRPCTransactionObject doesn't return magic numbers anymore, but error codes defined in mastercore_errors.h.