Merge pull request #2101 from Guite/1.4

fixed login functionality for CLI commands
readded compression support as event listener