wrapping pages in ssl, checking that json objects passed both ways correctly