After an electric one-night stand, two New York millennials draw up a friends-with-benefits contract to avoid the pitfalls of their past relationships