Init version 4.0 and migration from 3.2 to 4.0 (refs #4515)