Fixed most compiler warnings. Rewrote much of PTP::Transaction to refer to
PTPContainer structures, removing most casting and pointer arithmetic.