A Solution for the discount and quantity discount problem:
in paypal_ipn.php find:
$subtotal = $order_total['ot_subtotal'];
and replace with:
$subtotal = $order_total['ot_total']-$order_total['ot_shipping'];
Works really fine to me, and is the easiest way I think.