Fix #55: improve dev selection and init behaviour

With this change g_object_new() produces a valid UfoResources object. Moreover,
the correct device type is used when creating a standalone resources object.