client: do not free framebuffer surface
client: add include guards for packets.h and replace const's with defines
client: add connection state