Refactor Server-Side JS
- Pulled out orphan alert boxes (displaying by themselves on a page between redirects) from code and replaced with a new pageConstructor for "alert redirect" pages
- Replaced error throws with console error logs (no need to break the server entirely on every error)
- Pulled out all responsibility from DAO for returning pages through response object (DAO now calls back to calling module to deal with response)
- Pulled out code from DAO not related to database functions, moved to calling modules and activated through callbacks
- Better error handling from DAO, all critical functions should now return 500 error instead of breaking server entirely (more robust)
- Removed obsolete and orphaned code from DAO relating to userCount
- Removed registerData.js and logout.js, moved functions to requestHandlers for displaying alerts and DAO call for registration in auth-ss.js (where the rest of it is)