Dropped old compatibility code
Fixed handling cookies