Companion of https://github.com/gem/oq-engine-server/pull/16

Requires https://github.com/gem/oq-platform/pull/111