split out website-related stuff into website.js.
moved more tests into website test suite.
moved more code into website.js.