fix restorecode calculation
add Bnet::Attributes::Serial.is_valid? etc.
move app/models/bnet to app/lib/bnet
implemeted: restore authenticator with serial and code