Nicer hook debugging; Different basedir and plugindir defaults; zm_register and zm_call functions