Added SSL support;Added file sync;Fixed minor small issues;Refactored the code to make it more managable
Merge for release