Core C++ API

Shared data types, formatting, mathematical functions, and exceptions.