Templated, unit-tested quaternion class with minimal dependencies.