Change command query-handler to a seperate handler

To make it posisble to refactor out commands query handler to the
commands.c file later, use a sepeate query handler to handle commands

Signed-off-by: Max Sikstrom <msikstrom@op5.com>