Add debug_mask module parameter and debug levels

Easier to control debug messages this way.