Refactored edgeinfo serialization

@dnesbitt61 @kevinkreiser @gknisely