Cleanup Quaternion:
- Formatting
- Tune the code to allow dart2js to generate better output
- Remove call chaining
- Remove duplicated code