Improve the way we work with authenticated Graphite and add a test (fixes #89)