Added upstream message factory

All log statements starting with "Log" can be ignored. They are dev logs. The actual logs start with a "log". All the debug logs will be deleted in the develop branch