Add version.hpp with CMake integration.

This allows for mostly automated versioning.