lots of fixes

moved all the func and action handlers to the correct location inside
the ws3v protocol class, large modifications to the heartbeat logic

client/server definitions ar enow modular and make sense

need to figure out why fleck keeps throwing an error on a disposed
network stream, i think i might be sending data after the connection has
been terminated