fix(test): making the httpd testcase work

Change-Id: Ie86f20f42a17ebeb0b70726bc284571383587a9b
fix(test): lots of mocking for GraphiteHandler to avoid real network action, tests now pass again

Change-Id: I65f0868de54cc603afca997b09f3c944f548f6a9
Merge pull request #701 from rtoma/graphite-handler-fix

fix(test): make the GraphiteHandler tests pass again
Merge pull request #700 from rtoma/httpd-fix

fix(test): making the httpd testcase pass
pep8
Fix the shell hostname style to work on python 2.6 and below
Fix uptime tests