Added new option to allow invalid SSL Certificates. Useful for testing
Cleaned up code to follow project code style
Merge pull request #582 from jenshandersson/master

Added new option to allow invalid SSL Certificates. Useful for testing