Added an API to retrieve the engine version

See https://bugs.launchpad.net/oq-engine/+bug/1340182.
The tests are running here: engine-version-api