Add version information during build task

This PR adds the version string (simplest implementation) during the build phase to the dist version to be called via $translate.versionInfo() afterwards.
Provides an alternative approach to #464 - as discussed in that ticket.

See also #404.