Add RegisteredMessage class to reduce the use of reflection, ...

Move ParsedMessage to Messages namespace