Revert "Remove extendedapi.lua"

This reverts commit 8d5788cbca8bb23849b09dd4abe2750634b3deae.