Encapsulate native wrapper functions in a struct

Instead of prefixing the class name to every native wrapper function
encapsulate them in a struct named after the class being wrapped.