Small fixes (added missing includes + cleanup)

passert was missing an include for <string> and msghandl.h an include
for passert.

Moved the inlined functions from PacketRegistry outside the class
definition.