Enforce SSL certificate validity checking.

- Added a class which requires a valid server certificate to connect.
- Fixed numerous docstring errors
- Fixed several pylint errors
- Report proper exit code