added GUI communication, server debugging

note: gui silently sprays errors when server isn't running.