bb-imager: Use trait for flasher
- Using trait instead of enums seems much better since it is easier to extend.
- Additionally, both GUI and CLI already maintained a soft copy of the enum, so was not particularly useful other than making things clunky.
- Also cleanup bb-imager library
Signed-off-by: Ayush Singh [email protected]