Rewrite Packet system

refs #13