Add QS_DEPRECATED and QS_DEPRECATED_MSG macros.
Switch the various deprecated things to use the macro