Add more functions for client to work with cookies.

This is for #155. Please CR.
@seanmonstar Cool! I missed this. Fixed!