cleaned up codes and fix a bug of parsing bookmark uri.
avoided a problem of SSLv3.
introduced SSL for server connection.
fixed a bug.