Add more functions for client to work with cookies.

This is for #155. Please CR.
Missed this, thanks! Fixed.