gnome_mobile: Use constants to define form factor
Currently we set $testapi::form_factor_postfix" to control which needles are used (desktop or mobile). The values are "" or "_mobile". It would be cleaner to have a global
form_factor` variable set to "desktop" or "mobile", and calculate details such as the needle postfix based on this variable. The code would be more readable.