Server-side bug fixes (see description)

Initializes arraylists, adds listeners so things can be initialized when data received
instead of immediately (hence null pointers), fixes inconsistencies in code

Author: ammesonb, dbtrue, chickenbellyfinn