lua_toxav: reflect toxav API changes, added throw_error to send ToxAvError

- implemented int lua_toxav_change_type(lua_State*);
- implemented OnMediaChange
- removed OnError
- updated callbacks prototype (TODO: make use of *agent instead or *arg)