Bump version to 2.4.0

* introduces `secure:` and `persistent:` options