Update CHANGELOG and version

Prepare release 1.4.0