Add SSL in production, various cleanup