Fix cookie handling and return value of authentication hook to work with
Roundcube 1.0.0.