Use the file cache when running tests.
Fix datetime import.
hmac requires encoded strings, not unicode.
Allow sc2bnet.main to be called with an argument array.
Fix cache dir variable name.
Add several tests for much better coverage.