CLI: fix a parser bug

Make the Or token try to match all of its alternatives unless one of them
matches the full command line. When there are several matches, the one that
consumes the most input is chosen. Ties are broken by choosing the 1st match.

Fixes: MN-281

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
Merge pull request #54 from brandon-berg/master

CLI: Implement unlinking, DNS servers for dhcp, and other fixes.
Merge pull request #55 from gontanon/parserBug

CLI: fix a parser bug
Packaging fixes.

-Add dependency on python-httplib2.
-Add dependencies to RPM package.
-Add copyright and README files to RPM package.
-Add midonet-cli to RPM package.

Fixes MN-279

Signed-off-by: Brandon Berg <bberg@midokura.jp>
Merge pull request #56 from brandon-berg/package-fixes2

Packaging fixes.
Update versions to v1.2.0-rc1

Signed-off-by: Galo Navarro <galo@midokura.com>
Add man pages to RPM.

Signed-off-by: Brandon Berg <bberg@midokura.jp>
Remove dependencies to fix CentOS install

Also includes explicit python >= 2.6 dep. since we noticed that building
on a system with 2.7 includes this one by default, and CentOS doesn't
have packages for 2.7 so it breaks the build again. If it is ever
re-enabled it'll be safe already.

Fixes MN-297
Signed-off-by: Galo Navarro <galo@midokura.com>
Merge pull request #58 from srvaroa/m.297

Remove dependencies to fix CentOS install
Merge pull request #57 from brandon-berg/package-fixes2

Add man pages to RPM.
CLI: fix autocompletion bugs

The new complete_with_object() method in FieldAssignmentBase was calling
complete() using an object at the wrong depth level in the object hierarchy.
In the example, this meant calling complete on the Router object instead
of the RouterPort object.

Also, list filters didn't have an implemented autocomplete, because they
were using the redundant and incompete Seq class. This patch removes that
class and uses Concat in its place, which implements complete() correctly.

Fixes MN-189
Related to MN-192

Signed-off-by: Guillermo Ontanon <guillermo@midokura.jp>
CLI: fix bug in contructor parameter ordering

A new 'unsetter' parameter was introduced in SingleAttr, however some
subclasses that don't need it didn't add it to their call to the superclass.
The were sensitive to this change because they call the super class passing
arguments by ordering, not by name.

Fixed this by moving 'unsetter' to the last place in the list, which makes
sense because it's the least likely argument to be passed: only device
ports have a special-purposed 'unsetter'.

Fixes MN-192.

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

Two fixes for bugs found in the v1.2 QA cycle