Implemented MSC device framework

Added mscInit() and mscDispatch() functions.