Added Type() function to ros message template.

In working on actionlib, I found I needed the ability to get a ros.MessageType object from a ros.Message object.  This adds that to the message template code.