adds ssl support for client app, fixes inputstream issue in server and includes keys