Continues the refactor effort. Adds admin functionality that had been
missing in the nodeJS server. Adds save state loading functionality
portion of persistence that had been missing in the nodeJS server.
Reorganized functions across multiple files, based on purpose of said
functions. Adds comments and renames to somewhat clearer names.

Fixes #2735.