Added remaining lua API functions

This pretty much makes the lua API complete... at least for first
version.