Fix a major issue (nil device)

This fix an issue due to bad refactoring, i.e. device is never assigned
in wait_and_retrieve_by_serial and set_configuration.
Upgrade dependencies
Bump version 0.1.1