calculate authorization header in constructor, part of issue #11