Synced with upstream
Support for non-mixedcase login failures
Playing around with sorting dicts
Merge pull request #5 from ksuarz/testing

Merge sorting into testing; merge testing into stable