[msm] factor out debug code into shared area, make configurable

The defines WITH_DEBUG_DCC, WITH_DEBUG_UART, and WITH_DEBUG_FBCON
are used to determine where dputc output goes.  Duplicated code
merged to msm_shared.  Configuration added to project files.
7 files changed