No longer using font folder
Use more specific logging functions

Classify logs as error/debug/info/log/warn and try to use the more exact
logging function. Also, use %o as a single logging call instead of a log
call followed by a dir call. Prefer to use %o with text instead of dir.
Minor indentation change
Comment cleanup
Better handling of data uris