! missing global $context in stats

Signed-off-by: Spuds <spuds@spudsdesign.com>
! $pmID was not being passed to loadPM's resulting in an access denied when in conversation view

Signed-off-by: Spuds <spuds@spudsdesign.com>
! named link was incorrectly defined to the template .. should be msg_xyz not msgxys

Signed-off-by: Spuds <spuds@spudsdesign.com>
! remove left over debug code ...

Signed-off-by: Spuds <spuds@spudsdesign.com>
Merge pull request #791 from Spuds/MoarFix

Some quick fixes found during the site upgrade