jsapi-util: add GjsAutoPointer to simply generate c++ smart pointers
A wrapper on std::unique_ptr that adds facility functions to unref and in case take ownership of pointers handling the memory management in a smart way. Keep just few specializations for specific objects