Use a map[string]interface{} for storing commands.

This way we can determine whether a function needs the client or
not, and act accordingly.

Signed-off-by: Blaž Hrastnik <blaz.hrast@gmail.com>