client: new methods and fixes for tunnel-zones

Fix a few typos in the tunnel zone classes and add a few
methods that allow working with them in a type-agnostic way.

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
CLI: new definitions - TunnelZone, TunnelZoneHosts

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Add filtering ability to the list command

This lets the user specify a list of field-value pairs at the end
of the command which will be used to filter the results.

This feature will also be added to the delete and add commands because
the are some api objects that don't have uuids, therefore this will be
the only way to select them to perform an action on them.

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Add list filter support to create, delete and show

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Add missing attrs to the chain Rule type

With this patch, the whole space of cli<->api mappings is complete, except
for Rule's natRule attr.

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Fix an exception in command_complete()

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
ListAttr: new attribute type for lists of literals

used in: interface->addresses, rule->in-ports, rule->out-ports

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Add the sort_by property for collections

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Fix a typo in chain.rule attr definition

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
command_complete: improvements

take into account tokens that consume no input args instead of
skipping them.

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
cli create: Print uuid/alias of the new object

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
cli: add natTargets field to the Rule object def

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Add missing blank lines in some help msgs

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Merge pull request #10 from gontanon/cli

CLI: Finalize api-cli object mappings, plus several bug fixes