Fix handheld media types, Add debug_mobile param, Cleanup