Fixed a bug in the test script.
Don't choke resolving localhost (and other names..

from /etc/hosts).
Fxied a bug uncovered by the shale-python tests.
Use camel-snake-kebab for case conversion.

This should fix a bug sending extra desired capabilities as well.