A first version of a cookie based storage engine addition

code review is required.
also note that jquery-cookie is needed.