SensuWriter follow the pattern introduced in BaseOutputWriter.

Also made Socket tests a bit more robust by using random free TCP port instead of fixed one.