Fixing various issues around testing and deferred.

* Adding endpoints_config.py file.
* Adding example test using the new EndpointsTest in ferrisnose