Add helper method to serialize form data, add new bet template and event handler that inserts the bet record to the bets collection