A bunch of bug fixes, including consideration of disabled accounts in all balance calculations

Signed-off-by: pianomister <stegiemail-github@yahoo.de>