Restructuring API

Change the way graphic and text operators get called.
Limit the scope of "doc" object to the world.
Remove pageNode and font object to public access.
Sanitize input string for "showText" operator.
Update examples to cleaner code.