Move constant definitions.

[MOD] Move constants to nexus.constants.
[MOD] Change the timing of initializing version number.