Fix png export bug and allow config setting and getting.
Switch server example back to requiring npm package.
Include tests.
Update README.md and package.json files with npm version.
Update .gitignore to ignore logs.