Cleaned up the repo folder by using subfolders.
Cloned in the wp-session-manager plugin as a git submodule to see if it can replace sessions.
Corrected a major performance bottleneck with a large code rewrite. The issue lay with theme assignment processing logic on-the-fly, which has now been moved to just the admin save process. Also tidied up some other code and added more comments.