Switch around internal fromtag/totag/endpoint representation

monologue_offer_answer() had A-side and B-side reversed, resulting in
incomplete dialogue association when more than 2 parties are involved.

It also fixes #21 by catching errors returned by
monologue_offer_answer() (e.g. when running out of ports)