Fix for Due Wire library

Fix reading and use of TWI status register.
Also, update endTransmission to be compatible with original & give more
useful return.