Change client to use proper flags and subcommands parsing.

I rewrote all the cli in order to have a proper basis and to rely on the existing library `github.com/codegangsta/cli`.

This result in the following improvements :