BIOAMBER INC. CONVERTIBLE NOTE AND WARRANT PURCHASE AGREEMENT