[ticket/12344][PHP] UCP PM submission hook

Add core.pm_submit to funtion submit_pm

There is event request by EXreaction in the forum. As 
I need it for few other extensions I think this fulfills it.

This is my first full core.event addition, so don't trou
too many stones. 

*some cosmetic changes to the comments.

PHPBB3-12344