add '-version' option that outputs version string and exits
Merge branch 'features/version' into dev