Fixed reversed error messages
Added simple HTTPS support
Merge pull request #18 from slawekp/master

fix reversed error messages; added simple HTTPS support