dev: core: added dev_get_by_name

As the name suggests, dev_get_by_name searches for a device based on its
name. If a device is found it is returned and if no device with such
name is found, NULL is returned.

Signed-off-by: Michel Megens <dev@michelmegens.net>