device: add btic_device_get_control_by_name

Move more code to the library.