Base framework offering a Lua scriptable environment for creating document readers