Split error message and line#; moving util functions into util files

See title.

There are a few errors that come up from linebyline.js when I run this on a sample string.  I don't think they are related to anything I did though.  We can do more testing soon and fix any errors that arise.