Bumping version to 0.40.0
Merge branch 'release-0.40.0' into develop

* release-0.40.0:
  Bumping version to 0.40.0