SSL, JSON and Web server improvements