Added cookie methodmap (clientprefs) #1012
Happen to have any examples? I spent an hour or two digging for similar cases, but couldnt find anything, although good chance I overlooked it.
By doing it on C++ side, how would it be handled? Creating a new native callback specifically for the methodmap?
This PR adds a methodmap for clientprefs cookies without breaking changes, considering that the cookie Handle is not always the first param for clientprefs functions.
I implemented the switching to the c++ side of things and made the methodmap functions natives.