Rename files.
Support both SSL and non-SSL. Fixed a couple of bugs in the client also.