move the version number to a separate module

This removes the requirement that the entire library be import-able just
to get the version number.