Getting account creation to work, tweaks to some of the MOS API interaction stuff, refactor sessions to use a class instead of just an include with a bunch of inline code, and a few other tweaks.