Added bit api (api.lua changes)

Also, removed math.mod and string.gfind.