diagram edits now $emit ng events on attr.event ? 'circuit'
complete overhaul of diagram edit handling

currently broken, all model changes removed from the editor
instead, enclosing controller should save/apply changes in its $on
handler
got rid of def.pins, info now constructed in prepareData
circuits now has the proper data structure