Merge branch 'ifc-priority-optional' of github.com:Metaswitch/sprout into dev
Track lifetime of AsChain objects more precisely.

Fixes a race where one thread could look up the AsChain in the AsChainTable and
start using it, while another thread could could destroy the initial
UASTransaction, destroying the AsChain. Fix is to use reference counting
to ensure the AsChain isn't destroyed until no thread is using it.

Clearly document the life cycle of AsChain at the top of AsChain's declaration.

Hide almost all methods of AsChain itself, so caller must use AsChainLink.
That makes AsChainLink a reference-holder for AsChain. I wasn't quite brave
enough to use RAII here (given the amount of copying of AsChainLink that
goes on), so there's an explicit release() method.

Separate removal from the map (request_destroy()) from deleting the AsChain
object (which happens within dec_ref()).

Explain the lifetime of an AsChain object (and an ODI token).
Merge branch 'dev' of github.com:Metaswitch/sprout into dev
Make 1000ms the default, and improve var names.

Use a default poll timeout for the LastValueCache, to make the
production code cleaner.

Explicitly add `_ms` to the name of the timeout variable, so it's
clear what the unit is.
Merge pull request #38 from Metaswitch/ut-speedup-1

Make 1000ms the default, and improve var names.
Re-enable disabled VG test.
Properly lock the shared timer offset.

The timer offset used by cwtest_advance_time_ms is accessed from
multiple threads. Ensure we lock it properly.
Fix the ExpiredChain UT failure.

Problem was that the first poll was taking it from Completed to
Terminated, and we needed a second poll to take it from Terminated
to Destroyed. Make poll() do repeated polls until quiescent.
Merge pull request #39 from Metaswitch/ut-robustness

[Reviewer: Matt] UT robustness
Merge branch 'dev' of github.com:Metaswitch/sprout into dev
Change SipTest::poll to use 1ms timeout instead of 0ms
Add service route on all 200 responses to REGISTER requests
Include the trusted port number
Merge pull request #42 from Metaswitch/add-service-route

Add service route to successful REGISTER responses
Review markup: comment initial ref count.
Merge pull request #30 from Metaswitch/ref-counting

[Reviewer: Mike] Track lifetime of AsChain objects more precisely.
Markups
Merge remote-tracking branch 'origin/master' into check-aor-for-paths