Updated api to use SSL. addn. changes. PRERELEASE