Make createServer API be consistent with httpServer on node core