Add UTs to demonstate ENUM problem
Reorder some stateful_proxy logic to fix ENUM problem
Fix up UTS that did not specify an orig param
Further UT changes to behave properly
Apply terminating services correctly on terminating-only calls
Move orig-ioi logic into handle_originating to match handle_terminating; move the blanking of term-ioi to the orig-csdiv logic; be clearer about expected function preconditions
Fix potential segfault
Clarify some UT changes
Clean up some unnecessary iFCs
Add test to demonstrate that the ;orig header is not currently copied through from the P-CSCF's Route
Check the received message's Route header for an orig param, not the message we're transmitting with the Route header already stripped
Rename misleading function
Correct test comment
Code review markups
Merge pull request #298 from Metaswitch/routing_fixes

[Reviewer: Mike] Routing fixes