Refactored edgeinfo serialization

@dnesbitt61 @kevinkreiser @gknisely 
i guess you know what im going to say here...