Add version module.

Fixes #1.
Merge branch 'master' into metrics