Vonage posts record revenue, cuts losses