Reorganizing of HandleCommand function into more managable helpers. Let's face it, this has been a long time coming...

Signed-off-by: Cala Haryon <calaftp@free.fr>