Add function to return version at runtime

Provide a function to allow applications to determine the
version at runtime.

Change-Id: I264c01078998f56b8776fb7daf148fef2db3c713
Merge topic 'version-function' into master

152c8b6c Add function to return version at runtime