writes pd settings into system namespace
writes pd settings as object
moves dirname settings into app
enums only need integer value
renames payload to state
renames connection to client