In prep for doing messaging between reps extracted common InputStream code into
a common InputStreamCommon.cc to avoid errors.

Added some message types to the Root
and made the Rep inherit from messagable