split out pillarModel.js

bugfix for application.py
split pillarModel into two additional models
changed some publicly scoped methods to be private where it made sense
renamed some things
Probably should have been in one of its own, but it's a change that needs to be made.