Updates transport code to use shared rather than raw pointers. references #293