middleware: code cleanup

The removed code doesn't serve anything.

Change-Id: I04b0cf7abc465de0115345018d2157da67f6985c
Ensure context type is handled when using to_dict

Handle the case where the context passed into def pack_context() is a
dictionary. If a dictionary is passed in, we don't need to call to_dict
before updating the msg.

fixes bug 1208971

Change-Id: I2ce0b28f97634e717868e0ee5525189338d4981c
Fix capitalization, it's OpenStack

This capitalization shows up in the manual as well. Let's be consistent.

Change-Id: I282d4ae3311bc3fcda6be8e5a1fceecfc8ddb115
Merge "middleware: code cleanup"
Merge "Fix capitalization, it's OpenStack"
Merge "Ensure context type is handled when using to_dict"
Fix case error in qpid exchange type "direct"

Most places correctly have "direct", but one place has "Direct"
instead, which is incorrect.

Fixes bug #1211338

Change-Id: I2516317ff7f6ff18ee0a99a60d0c058ed309d4da