Cleanup nova subcommands for security groups and rules

The Changes include:
  - Sanity check for from_port, to_port, and IP protocol when adding
    a security rule
  - Print one more column 'Id' for security groups
  - If there are multiple security groups with the same name, the group
    can't be deleted unless an ID is specified. However, there is no code
    to search and delete security group by ID. So, _get_secgroup() will
    get group by ID if the input is like a UUID. If not found, then get
    group by name.
  - Some corresponding changes for help messages.
  - Test case changes after adding sanity check.

Change-Id: Ibd82d8404bdd64e4bca2f8b25756bfaff7b28194
Signed-off-by: Shane Wang <shane.wang@intel.com>
Synchronize code from oslo

Use commit 8d0228837c40c02d93d80ae0a179275ac2d7f277
Merge "Break out common functionality for filters and weights"
(Fri May 17 12:12:40 2013 +0000)

Change-Id: Ib2ec8ff64e036a07fad2a38319a9a4c40a698898
Signed-off-by: Shane Wang <shane.wang@intel.com>
Merge "Cleanup nova subcommands for security groups and rules"
Merge "Synchronize code from oslo"