Remove dependency on jquery-cookie plugin

Replace plugin with simpler get and set methods.