Moved server over to HTTPS and fixed ToJSON instances using generics.