Add ability to provide custom registry and manager to get_device. Closes #2