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).
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.