Updated to work all the way back to API 10 (Gingerbread).
Completed quaterion from Euler function.