Fixes to work with Roundcube 1.0.0.

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