A guide to building lighttable plugins