Srv: store systemid (sid) in a separate table
Srv: add devices view
Srv: API V3 accepts user-defined flags (refs #289)
Srv: more debug output