refactored a lot, switched from ejs to jade, upgraded libraries, changed to pass binary data rather than string, etc.