Release 0.4.0

cc @mpetazzoni @johncosta