Made some changes to the packet handling

And added journaling functions that can later be tuned to allow journal
support.
Syncing with head
Another sync
Merge pull request #9 from Hackmancoltaire/packetAndJournalFix

Packet handling and journal fix