Clean up promise logic in PdfManager
Move new exception types into util.js
Fix all jshint warnings/errors
Add new files to make bundle command