Better mpos/mysql logging. Added maxcoin config.