add test for basic auth with very long password. Refs: #47
use b64encode instead of encode to fix #47
pep8
Merge pull request #48 from kouk/fixauth

Fix #47 - basic authentication with big passwords