First steps to making the codebase more sane

There is a lot more to do, but made mention of the upcoming changes in
the README, and finished core.js.