Merge and close PR #321. Improve SSL configuration and make it optional for dev deployments.