Thread safe loopback transport & specify type of message at runtime when publishing

Made loopback transport threadsafe. I am using it as my transport.

Added the ability to specify the message type at runtime when publishing a request. This only works for .net 4.0

Tali