Release 0.4.0

See changelog diff