Bug 1058146 - Part 1: import (and customize where necessary) HttpClient 4.3.5.
Bug 1058146 - Part 2: replace Base64 implementation with ours in 4.3.5.
Bug 1058146 - Part 3: remove catch made redundant by newer library version.